summaryrefslogtreecommitdiffstats
path: root/login-utils/su.c
diff options
context:
space:
mode:
authorKarel Zak2012-06-15 12:44:17 +0200
committerKarel Zak2012-06-15 12:44:17 +0200
commitd5f9b6e5fb352c632655e442773df96129cea02d (patch)
treea260ed26fd77e54280d1370f0b8e7a41aa1fe380 /login-utils/su.c
parentlibmount: make some string operations more robust (diff)
parentlsblk: use blkdev_scsi_type_to_name() (diff)
downloadkernel-qcow2-util-linux-d5f9b6e5fb352c632655e442773df96129cea02d.tar.gz
kernel-qcow2-util-linux-d5f9b6e5fb352c632655e442773df96129cea02d.tar.xz
kernel-qcow2-util-linux-d5f9b6e5fb352c632655e442773df96129cea02d.zip
Merge branch '2012wk23' of git://github.com/kerolasa/lelux-utiliteetit
* '2012wk23' of git://github.com/kerolasa/lelux-utiliteetit: lsblk: use blkdev_scsi_type_to_name() blkdev: add blkdev_scsi_type_to_name() wipefs: use symbolic value for markup mode eject: inform if CD-ROM drive is not ready docs: clean up partx.8 manual include: fix void pointer arithmetics warnings sysfs: fix printf format warnings build: fix unused parameter warnings build: fix redundant redeclaration warnings include: fix spurious list.h warnings uuidd: use output redirection which works [checkbashisms] blkid: fix realloc memory leak [cppcheck] setarch: do not use -1 as array index [cppcheck]
Diffstat (limited to 'login-utils/su.c')
-rw-r--r--login-utils/su.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/login-utils/su.c b/login-utils/su.c
index 20cc92912..68f1919bd 100644
--- a/login-utils/su.c
+++ b/login-utils/su.c
@@ -78,7 +78,9 @@ enum
/* The user to become if none is specified. */
#define DEFAULT_USER "root"
+#ifndef HAVE_ENVIRON_DECL
extern char **environ;
+#endif
static void run_shell (char const *, char const *, char **, size_t)
__attribute__ ((__noreturn__));