Karel Zak
|
e113093ce9
|
lib/env: add function to save and restore unwanted variables
Signed-off-by: Karel Zak <kzak@redhat.com>
|
2020-08-25 10:43:07 +02:00 |
Sami Kerola
|
ed292a08dd
|
include: add remove_entry() to env.h
A function to remove an command-line option argument, or environment
variable.
Requested-by: Karel Zak <kzak@redhat.com>
Reference: https://github.com/karelzak/util-linux/pull/1003#discussion_r403988092
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
|
2020-04-13 12:14:08 +01:00 |
Karel Zak
|
05d8868d86
|
include/env: minor fixes and clean ups
Signed-off-by: Karel Zak <kzak@redhat.com>
|
2016-08-16 12:35:57 +02:00 |
Sami Kerola
|
984a60965a
|
misc: always check setenv(3) return value
At least glibc setenv(3) can fail when system runs out of memory.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
|
2016-08-12 21:25:36 +01:00 |
Sami Kerola
|
e0b6ab5687
|
include/env: unify indentation
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
|
2012-10-19 15:07:44 +02:00 |
Karel Zak
|
90af3fe39b
|
inclide/env: innclude c.h, remove _() macro from xsetenv()
Signed-off-by: Karel Zak <kzak@redhat.com>
|
2012-06-05 15:44:12 +02:00 |
Ludwig Nussel
|
e557efdedd
|
su: introduce xsetenv globally
Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
|
2012-06-05 15:16:18 +02:00 |
Karel Zak
|
035507c84b
|
lib: [env] consolidate safe_getenv() usage
Signed-off-by: Karel Zak <kzak@redhat.com>
|
2011-01-03 12:28:48 +01:00 |
Karel Zak
|
48d7b13a1e
|
Imported from util-linux-2.13-pre1 tarball.
|
2006-12-07 00:26:54 +01:00 |