aboutsummaryrefslogtreecommitdiffstats
path: root/builtins/umask.def
diff options
context:
space:
mode:
Diffstat (limited to 'builtins/umask.def')
-rw-r--r--builtins/umask.def10
1 files changed, 6 insertions, 4 deletions
diff --git a/builtins/umask.def b/builtins/umask.def
index 5b98c0c..9205c94 100644
--- a/builtins/umask.def
+++ b/builtins/umask.def
@@ -7,7 +7,7 @@ This file is part of GNU Bash, the Bourne Again SHell.
Bash is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
-Software Foundation; either version 1, or (at your option) any later
+Software Foundation; either version 2, or (at your option) any later
version.
Bash is distributed in the hope that it will be useful, but WITHOUT ANY
@@ -17,7 +17,7 @@ for more details.
You should have received a copy of the GNU General Public License along
with Bash; see the file COPYING. If not, write to the Free Software
-Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA.
$PRODUCES umask.c
@@ -36,7 +36,7 @@ $END
#include <config.h>
#include "../bashtypes.h"
-#include "../filecntl.h"
+#include "filecntl.h"
#ifndef _MINIX
# include <sys/file.h>
#endif
@@ -48,7 +48,7 @@ $END
#include <stdio.h>
#include "../shell.h"
-#include "../posixstat.h"
+#include "posixstat.h"
#include "common.h"
#include "bashgetopt.h"
@@ -295,6 +295,8 @@ symbolic_umask (list)
more intuitive and easier to deal with. It is complemented
again before being returned. */
bits = parse_symbolic_mode (list->word->word, ~um);
+ if (bits == -1)
+ return (-1);
um = ~bits & 0777;
return (um);