* strace.c (main): Bail with usage error for missing command before we
open the -o file or fiddle uids.
}
}
+ if (optind == argc && !pflag_seen)
+ usage(stderr, 1);
+
/* See if they want to run as another user. */
if (username != NULL) {
struct passwd *pent;
pid);
}
- if (optind < argc) {
+ if (!pflag_seen) {
struct stat statbuf;
char *filename;
char pathname[MAXPATHLEN];
break;
}
}
- else if (pflag_seen == 0)
- usage(stderr, 1);
sigemptyset(&empty_set);
sigemptyset(&blocked_set);