diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/profiles.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/profiles.c b/source3/utils/profiles.c index a31674dfb2..6911341708 100644 --- a/source3/utils/profiles.c +++ b/source3/utils/profiles.c @@ -577,6 +577,8 @@ int main(int argc, char *argv[]) } } + poptGetArg(pc); /* To get argv[0] */ + if (!poptPeekArg(pc)) { poptPrintUsage(pc, stderr, 0); exit(1); @@ -588,8 +590,6 @@ int main(int argc, char *argv[]) exit(252); } - poptGetArg(pc); /* To get argv[0] */ - fd = open(poptPeekArg(pc), O_RDWR, 0000); if (fd < 0) { |