{
int j;
+ /* Unused */
+ (void)s;
+
/* Scan windows */
for (j = 8 - 1; j >= 0; j--)
{
char dirpath[1024];
char subdirpath[1024];
- /* Drop privs */
- safe_setuid_drop();
-
/* Get an absolute path from the filename */
path_parse(dirpath, 1024, PRIVATE_USER_PATH);
/* Create the directory */
mkdir(subdirpath, 0700);
-
- /* Grab privs */
- safe_setuid_grab();
}
#endif /* PRIVATE_USER_PATH */
cptr s;
/* Find equal sign */
- s = strchr(info, '=');
+ s = my_strchr(info, '=');
/* Verify equal sign */
if (!s) quit_fmt("Try '-d<what>=<path>' not '-d%s'", info);
#endif
+ /* Drop permissions */
+ safe_setuid_drop();
+
+
#ifdef SET_UID
/* Initialize the "time" checker */
}
#endif
+ case 'x':
+ {
+ if (!argv[i][2]) goto usage;
+ prepare_browse_movie(&argv[i][2]);
+ break;
+ }
+
case '-':
{
argv[i] = argv[0];
quit_aux = quit_hook;
- /* Drop privs (so X11 will work correctly) */
- safe_setuid_drop();
-
#ifdef USE_XAW
/* Attempt to use the "main-xaw.c" support */
#endif
- /* Grab privs (dropped above for X11) */
- safe_setuid_grab();
-
-
/* Make sure we have a display! */
if (!done) quit("Unable to prepare any 'display module'!");