From 2b0a8846e3f4c4ee776e10f0377522ec5f13dbcb Mon Sep 17 00:00:00 2001 From: jay Date: Wed, 14 Jun 2006 21:18:15 +0000 Subject: [PATCH] Fixed Savannah bug #16579 (su false should be su -c false) --- locate/updatedb.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/locate/updatedb.sh b/locate/updatedb.sh index 5786bda..b924ceb 100644 --- a/locate/updatedb.sh +++ b/locate/updatedb.sh @@ -1,7 +1,7 @@ #! /bin/sh # updatedb -- build a locate pathname database -# Copyright (C) 1994 Free Software Foundation, Inc. - +# Copyright (C) 1994, 1996, 1997, 2000, 2001, 2003, 2004, 2005, 2006 +# Free Software Foundation, Inc. # This program 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 2, or (at your option) @@ -87,11 +87,11 @@ getuid() { # figure out if su supports the -s option select_shell() { - if su "$1" -s $SHELL false < /dev/null ; then + if su "$1" -s $SHELL -c false < /dev/null ; then # No. echo "" else - if su "$1" -s $SHELL true < /dev/null ; then + if su "$1" -s $SHELL -c true < /dev/null ; then # Yes. echo "-s $SHELL" else -- 2.11.4.GIT