|
|
|
su(1) wish list | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
On Tue, May 29, 2012 at 11:06:09AM +0200, Karel Zak wrote:
> On Thu, May 24, 2012 at 02:58:01PM +0200, Ludwig Nussel wrote:
> > I've also filed a pull request on github:
> > https://github.com/karelzak/util-linux/pull/10
>
> Merged, but you forgot man page ;-) I don't think we need whole
> history for the man page, so just copy and edit any existing su.1
> man page and send it as a patch.
another issue:
- why su.c expects "PATH" and "SUPATH" login default variables, but
login.c expects "ENV_PATH" and "ENV_SUPATH"?
See also login.def man page from shadow-utils where ENV_* is
documented (for login as well as for su).
IMHO we need to share the configuration between login and su.
and wish list:
- remove MAX(), use max() from c.h
- use err(), errx() and warn() and warnx() rather than error()
- share init_environ() from login.c with su.c
- cleanup usage()
- move longopts[] to main
- remove horrible PAM_BAIL macro, see is_pam_failure() in login.c
- remove #if 0 code
- simplify xsetenv(), move it to include/env.h as inline function,
and use it in su.c, login.c etc.
IMHO we can use code without putenv(), something like
if (setenv(name, value, ow) != 0)
err(EXIT_FAILURE, "failed to set %s variable", name);
Karel
--
Karel Zak <kzak@xxxxxxxxxx>
http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Site Home] [Netdev] [Ethernet Bridging] [Linux Wireless] [Kernel Newbies] [Memory] [Security] [Linux for Hams] [Netfilter] [Bugtraq] [Rubini] [Photo] [Yosemite] [Yosemite News] [MIPS Linux] [ARM Linux] [Linux RAID] [Linux Admin] [Samba] [Video 4 Linux] [Linux Resources]