diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-02-11 13:30:02 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-02-11 13:30:02 +0000 |
commit | 960471b1a66d5806b64b2260001f0b52326e4ab3 (patch) | |
tree | a275ab8c3a0866621cb64d2f4a91262bea8389e7 /winsup/utils | |
parent | 49a4f409df91a9e6d0b50f0e37a7486f9e057f28 (diff) | |
download | cygnal-960471b1a66d5806b64b2260001f0b52326e4ab3.tar.gz cygnal-960471b1a66d5806b64b2260001f0b52326e4ab3.tar.bz2 cygnal-960471b1a66d5806b64b2260001f0b52326e4ab3.zip |
* strace.cc (opts): Add leading '+' to force posixly correct
behaviour.
(main): Revert POSIXLY_CORRECT manipulations.
Diffstat (limited to 'winsup/utils')
-rw-r--r-- | winsup/utils/ChangeLog | 6 | ||||
-rw-r--r-- | winsup/utils/strace.cc | 7 |
2 files changed, 7 insertions, 6 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 672e9af83..2217364b2 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,9 @@ +2004-02-11 Corinna Vinschen <corinna@vinschen.de> + + * strace.cc (opts): Add leading '+' to force posixly correct + behaviour. + (main): Revert POSIXLY_CORRECT manipulations. + 2004-02-10 Christopher Faylor <cgf@redhat.com> * strace.cc (main): Guard against previous setting of POSIXLY_CORRECT. diff --git a/winsup/utils/strace.cc b/winsup/utils/strace.cc index df420240d..633aa55a9 100644 --- a/winsup/utils/strace.cc +++ b/winsup/utils/strace.cc @@ -870,7 +870,7 @@ struct option longopts[] = { {NULL, 0, NULL, 0} }; -static const char *const opts = "b:dhfm:no:p:S:tTuvw"; +static const char *const opts = "+b:dhfm:no:p:S:tTuvw"; static void print_version () @@ -903,15 +903,12 @@ main (int argc, char **argv) pid_t pid = 0; int opt; int toggle = 0; - int posixly_correct_set = getenv ("POSIXLY_CORRECT") != NULL; if (!(pgm = strrchr (*argv, '\\')) && !(pgm = strrchr (*argv, '/'))) pgm = *argv; else pgm++; - if (!posixly_correct_set) - (void) putenv("POSIXLY_CORRECT=1"); while ((opt = getopt_long (argc, argv, opts, longopts, NULL)) != EOF) switch (opt) { @@ -996,8 +993,6 @@ character #%d.\n", optarg, (int) (endptr - optarg), endptr); if (!ofile) ofile = stdout; - if (!posixly_correct_set) - putenv ("POSIXLY_CORRECT="); if (toggle) dotoggle (pid); else |