summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2006-02-06 02:16:15 +0000
committerGuillem Jover <guillem@debian.org>2006-02-06 02:16:15 +0000
commite54c24f03a018f387b9490dabe62a304c4da89a2 (patch)
tree2e53618e6961fe59b8648111631ffa5327ffa031
parent04bc1a0c6df0780a78c0324f0a6fd2a9213b7289 (diff)
downloaddpkg-e54c24f03a018f387b9490dabe62a304c4da89a2.tar.gz
Set the HOME environment variable when using the --chuid switch in
start-stop-daemon. Closes: #295169, #267784
-rw-r--r--ChangeLog5
-rw-r--r--debian/changelog4
-rw-r--r--utils/start-stop-daemon.c2
3 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a8250f981..59a801e15 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-02-06 Guillem Jover <guillem@debian.org>
+
+ * utils/start-stop-daemon.c (main): When using --chuid set the HOME
+ environment variable.
+
2006-02-05 Christian Perrier <bubulle@debian.org>
* man/*. Switch all translations to po4a. Work contributed
diff --git a/debian/changelog b/debian/changelog
index eaf6991ce..0be78d04e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,7 +2,9 @@ dpkg (1.13.14~) UNRELEASED; urgency=low
[ Guillem Jover ]
* Make start-stop-daemon print the proper version instead of 'VERSION'.
-
+ * Set the HOME environment variable when using the --chuid switch in
+ start-stop-daemon. Closes: #295169, #267784
+
[ Frank Lichtenheld ]
* Let dpkg-source ignore comments in the hunk header as used by
diff -p (Anand Kumria). Closes: #344880
diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c
index 824b3333f..658b8778c 100644
--- a/utils/start-stop-daemon.c
+++ b/utils/start-stop-daemon.c
@@ -1227,6 +1227,8 @@ main(int argc, char **argv)
changegroup = ""; /* just empty */
runas_gid = pw->pw_gid;
}
+ if (access(pw->pw_dir, F_OK) == 0)
+ setenv("HOME", pw->pw_dir, 1);
}
if (stop) {