git-svn-id: https://profuse.googlecode.com/svn/branches/v2@243 aa027e90-d47c-11dd-86d7-074df07e0730

This commit is contained in:
ksherlock 2010-05-20 22:44:12 +00:00
parent 9c95d74cba
commit da84b5bca2
1 changed files with 10 additions and 1 deletions

View File

@ -286,6 +286,10 @@ int main(int argc, char **argv)
int c;
#ifdef __linux__
putenv("POSIXLY_CORRECT=1"); // fix getopt to not mutate
#endif
/*
char *argv2[] = {
(char *)"afpm",
@ -325,8 +329,13 @@ int main(int argc, char **argv)
argc -= optind;
argv += optind;
#ifdef __linux__
optind = 0;
#else
optreset = 1;
optind = 1;
#endif
if (argc < 2)
{
@ -371,4 +380,4 @@ int main(int argc, char **argv)
}
return 0;
}
}