bug-bash
[Top][All Lists]
Advanced

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

tmpfile.c does not check that directory is writable


From: Chris F.A. Johnson
Subject: tmpfile.c does not check that directory is writable
Date: Wed, 11 Feb 2004 15:02:33 -0500 (EST)

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: freebsd4.8
Compiler: cc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='freebsd4.8' -DCONF_MACHTYPE='i386-portbld-freebsd4.8' 
-DCONF_VENDOR='portbld' -DSHELL  -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib  
-O -pipe
uname output: FreeBSD danforth.torfree.net 4.8-STABLE FreeBSD 4.8-STABLE #0: 
Mon Jun  9 12:59:58 EDT 2003     chris@torfree.net:/usr/obj/usr/src/sys/SERVER  
i386
Machine Type: i386-portbld-freebsd4.8

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

Description:

    Temporary file cannot be created when using here document due to
    lack of permissions on /var/tmp.

Repeat-By:

$ cat <<EOF
> qwe
> rty
> EOF
-bash: cannot create temp file for here document: Permission denied

Fix:

    Add code in lib/sh/tmpfile.c to check that directory is writable,
    not merely that it exists.

-- 
        Chris F.A. Johnson
        =================================================================
        cfaj@freeshell.org                      http://cfaj.freeshell.org




reply via email to

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