bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

umask ugo=rwx does not work


From: Daniel Tuijnman
Subject: umask ugo=rwx does not work
Date: Fri, 11 Jun 2004 15:52:36 +0200
User-agent: Mutt/1.2.5.1i

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu'
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib
-D_GNU_SOURCE  -O2 -g -march=i386 -mcpu=i686
uname output: Linux nijmegen4.zaal.ATComputing.nl
2.4.20-20.9.XFS1.3.1smp #1 SMP Sat Oct 11 15:04:39 CDT 2003 i686 i686
i386 GNU/Linux
Machine Type: i686-pc-linux-gnu

Bash Version: 2.05b
Patch Level: 0
Release Status: release

Description:
    The command
    $ umask ugo=rwx
    gives an error code 1 and does not change the umask.
    Other ways to try to set the umask with all bits on, using symbolic
    notation, fail too.
    Octal notation does work, though.

Repeat-By:
    [Describe the sequence of events that causes the problem
    to occur.]
    See above.

Fix:
    The function parse_symbolic_mode in file builtins/umask.def
    uses -1 as error value and a complement of all bits to work on.
    Masking out the high bits with each complement operator would
    solve the problem.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]