diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | buildpkg.sh.in | 10 |
2 files changed, 3 insertions, 10 deletions
@@ -1,6 +1,7 @@ | |||
1 | 20060909 | 1 | 20060909 |
2 | - (dtucker) [openbsd-compat/bsd-snprintf.c] Add stdarg.h. | 2 | - (dtucker) [openbsd-compat/bsd-snprintf.c] Add stdarg.h. |
3 | - (dtucker) [contrib/aix/buildbff.sh] Always create privsep user. | 3 | - (dtucker) [contrib/aix/buildbff.sh] Always create privsep user. |
4 | - (dtucker) [buildpkg.sh.in] Always create privsep user. ok djm@ | ||
4 | 5 | ||
5 | 20060908 | 6 | 20060908 |
6 | - (dtucker) [auth-sia.c] Add includes required for build on Tru64. Patch | 7 | - (dtucker) [auth-sia.c] Add includes required for build on Tru64. Patch |
@@ -5419,4 +5420,4 @@ | |||
5419 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 5420 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
5420 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 5421 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
5421 | 5422 | ||
5422 | $Id: ChangeLog,v 1.4539 2006/09/09 10:34:15 dtucker Exp $ | 5423 | $Id: ChangeLog,v 1.4540 2006/09/09 10:41:25 dtucker Exp $ |
diff --git a/buildpkg.sh.in b/buildpkg.sh.in index 31db10d66..a3960cb89 100644 --- a/buildpkg.sh.in +++ b/buildpkg.sh.in | |||
@@ -311,14 +311,7 @@ then | |||
311 | chroot=echo | 311 | chroot=echo |
312 | fi | 312 | fi |
313 | 313 | ||
314 | if egrep '^[ \t]*UsePrivilegeSeparation[ \t]+no' \${PKG_INSTALL_ROOT}/$sysconfdir/sshd_config >/dev/null | 314 | echo "PrivilegeSeparation user always required." |
315 | then | ||
316 | echo "UsePrivilegeSeparation disabled in config, not creating PrivSep user" | ||
317 | echo "or group." | ||
318 | else | ||
319 | echo "UsePrivilegeSeparation enabled in config (or defaulting to on)." | ||
320 | |||
321 | # user required? | ||
322 | if cut -f1 -d: \${PKG_INSTALL_ROOT}/etc/passwd | egrep '^'$SSH_PRIVSEP_USER'\$' >/dev/null | 315 | if cut -f1 -d: \${PKG_INSTALL_ROOT}/etc/passwd | egrep '^'$SSH_PRIVSEP_USER'\$' >/dev/null |
323 | then | 316 | then |
324 | echo "PrivSep user $SSH_PRIVSEP_USER already exists." | 317 | echo "PrivSep user $SSH_PRIVSEP_USER already exists." |
@@ -363,7 +356,6 @@ else | |||
363 | \$chroot ${PATH_USERADD_PROG} -c 'SSHD PrivSep User' -s /bin/false -g $SSH_PRIVSEP_USER \$sshduid $SSH_PRIVSEP_USER | 356 | \$chroot ${PATH_USERADD_PROG} -c 'SSHD PrivSep User' -s /bin/false -g $SSH_PRIVSEP_USER \$sshduid $SSH_PRIVSEP_USER |
364 | \$chroot ${PATH_PASSWD_PROG} -l $SSH_PRIVSEP_USER | 357 | \$chroot ${PATH_PASSWD_PROG} -l $SSH_PRIVSEP_USER |
365 | } | 358 | } |
366 | fi | ||
367 | 359 | ||
368 | [ "\${POST_INS_START}" = "yes" ] && ${TEST_DIR}/etc/init.d/${SYSVINIT_NAME} start | 360 | [ "\${POST_INS_START}" = "yes" ] && ${TEST_DIR}/etc/init.d/${SYSVINIT_NAME} start |
369 | exit 0 | 361 | exit 0 |