summaryrefslogtreecommitdiff
path: root/shell.c~
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2011-12-03 13:39:12 -0500
committerChet Ramey <chet.ramey@case.edu>2011-12-03 13:39:12 -0500
commitd11b8b46f070695ffdc25a9a49f0b2dacd948273 (patch)
treed42172c682149b5862bd988d407471bb5a6d6218 /shell.c~
parent177d51f71e27dc2d215a5a1c6fc0c0bc2c3bb903 (diff)
downloadbash-d11b8b46f070695ffdc25a9a49f0b2dacd948273.tar.gz
commit bash-20041104 snapshot
Diffstat (limited to 'shell.c~')
-rw-r--r--shell.c~2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell.c~ b/shell.c~
index 2e17baac..651ce1d2 100644
--- a/shell.c~
+++ b/shell.c~
@@ -1089,6 +1089,8 @@ shell_is_restricted (name)
if (restricted)
return 1;
temp = base_pathname (name);
+ if (*temp == '-')
+ temp++;
return (STREQ (temp, RESTRICTED_SHELL_NAME));
}