Re: [bug #68587] Prefer runuser over su
James Youngman <[email protected]>
| Newsgroups | gmane.comp.gnu.findutils.bugs |
|---|---|
| Message-ID | <CAGwX766ruzC9dhtRwaVJhK8ntxM7b18=CMn6P067JpKX4MJhqw@mail.gmail.com> |
Sorry, I'm not able to log in to Savannah today; the login page gives HTTP 502 errors. Go ahead and apply the patch, thanks. I think runuser is a big improvement here. However, the `which` command is not in POSIX. The POSIX alternative is `command -v` I think. However, perhaps we can just run it to find out if it is usable: runuser -s /bin/sh -c true "$LOCALUSER" I also note that the code we are changing here had some variables that should have been better quoted. James.