summaryrefslogtreecommitdiff
diff options
authorBruce Korb <[email protected]>2021-09-11 13:58:59 -0700
committerBruce Korb <[email protected]>2021-09-11 13:58:59 -0700
commit81ce3ccf93e5252c40e7e2515fe7dc800ad9ac30 (patch)
tree76a101adf0d42f99b7626f7b0e06d37dda1dc5f6
parent4e33f1166d46f9c5faf6a5e6300372ee586defba (diff)
downloadsharutils-master.tar.gz
re-GNU-ify the treatment of "-"HEADmaster
-rw-r--r--src/uudecode.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/uudecode.c b/src/uudecode.c
index 25ef15e..d6f742d 100644
--- a/src/uudecode.c
+++ b/src/uudecode.c
@@ -464,18 +464,7 @@ decode (char const * inname)
{
bool use_stdout = (outname[0] == '-') && (outname[1] == NUL);
- if (use_stdout)
- {
- /*
- * In the world of GNU, a file name argument of "-" means
- * use stdin or stdout. But that's not POSIX. Make sure we're
- * not in a POSIX-ly correct environment
- */
- char const * p = getenv("POSIXLY_CORRECT");
- if (p != NULL)
- use_stdout = false; // "-" is a file name
- }
- else
+ if (! use_stdout)
use_stdout = (strcmp (outname, "/dev/stdout") == 0);
/*