Re: Can't get the set-user-id bit to work

2005-12-29 Thread Sebastian Tennant
[EMAIL PROTECTED] (Paul Jarc) wrote:

> Sebastian Tennant <[EMAIL PROTECTED]> wrote:
>> OK, but mandb _is_ a member of the root group, so shouldn't it be able
>> to write files in /tmp with the permissions as they stand?
>
> No, you'd have to make it setuid to root, or setgid to the root
> group.  The user/group associations in /etc/passwd and /etc/group
> aren't involved.

OK.  I get it.  Ta.

sdt




___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


enable-minimal-config compilation problem

2005-12-29 Thread Bratislav ILIC
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' -DLOCALEDIR='/\
usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H   -I.  -I.
-I./include -I./lib   -Wall -O2 -march=i486 -mtune=pentium4
-fomit-frame-pointer
uname output: Linux darkstar 2.4.32 #4 SMP Wed Dec 7 18:33:45 CET 2005
i686 unknown unknown GNU/Linux
Machine Type: i686-pc-linux-gnu

Bash Version: 3.1
Patch Level: 0
Release Status: release

Description:
If compiling with --enable-minimal-config you get errors:
=BO
text===
gcc  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"i686"'
-DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"i686-pc-linux-gnu"'
-DCONF_VENDOR='"pc"' -DLOCALEDIR='"/usr/share/locale"'
-DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include
-I./lib   -Wall -O2 -march=i486 -mtune=pentium4 -fomit-frame-pointer -c
variables.c
variables.c: In function `initialize_shell_variables':
variables.c:283: warning: suggest parentheses around assignment used as
truth value
variables.c:320: warning: suggest parentheses around assignment used as
truth value
variables.c: In function `sh_set_lines_and_columns':
variables.c:864: error: `winsize_assignment' undeclared (first use in
this function)
variables.c:864: error: (Each undeclared identifier is reported only
once
variables.c:864: error: for each function it appears in.)
variables.c: In function `var_lookup':
variables.c:1514: warning: suggest parentheses around assignment used as
truth value
variables.c: In function `bind_int_variable':
variables.c:2032: warning: unused variable `t'
variables.c: In function `makunbound':
variables.c:2389: warning: suggest parentheses around assignment used as
truth value
variables.c: In function `make_env_array_from_var_list':
variables.c:3072: warning: suggest parentheses around assignment used as
truth value
variables.c: In function `pop_var_context':
variables.c:3484: warning: suggest parentheses around assignment used as
truth value
variables.c: At top level:
variables.c:1061: warning: 'get_self' defined but not used
make: *** [variables.o] Error 1
=EO
text=== 

Repeat-By:
./configure --enable-minimal-config
make

Fix:
=BO
diff===
diff -c variables.c.old variables.c.new
*** variables.c.old 2005-11-13 03:22:37.0 +0100
--- variables.c.new 2005-12-29 10:45:44.0 +0100
***
*** 860,868 
--- 860,870 
  {
char val[INT_STRLEN_BOUND(int) + 1], *v;

+ #if defined (READLINE)
/* If we are currently assigning to LINES or COLUMNS, don't do
anything. */
if (winsize_assignment)
  return;
+ #endif /* READLINE */

v = inttostr (lines, val, sizeof (val));
bind_variable ("LINES", v, 0); 
=EO
diff=== 


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


jobs listing works poorly with functions with parameters

2005-12-29 Thread israel
Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H  -I.  -I../bash -I../bash/include -I../bash/lib   -g -O2
uname output: Linux home 2.6.12-9-386 #1 Mon Oct 10 13:14:36 BST 2005 i686 
GNU/Linux
Machine Type: i486-pc-linux-gnu

Bash Version: 3.0
Patch Level: 16
Release Status: release

Description:
when a background or stopped process was started by a function with
arguments, then the arguments are not explicitly listed in the jobs
output, but instead the jobs output shows the defined patterns, such
as $@, $*, $1, $2 ...

Repeat-By:

Define a function with an argument, call it, ^Z the process, then
list jobs.  e.g.

$ le() { less -E "$@" ; }
$ le /etc/termcap
[ CTRL-Z the 'less' job. ]
[1]+  Stopped less -E "$@"
$ jobs
[1]+  Stopped less -E "$@"

This should instead say
[1]+  Stopped less -E /etc/termcap


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash