[packages/systemd] test -s implies test -f
glen
glen at pld-linux.org
Mon Jun 8 15:06:31 CEST 2015
commit 007ebc135be2ab8dc633752de1aff8e618b04132
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Jun 8 16:06:16 2015 +0300
test -s implies test -f
systemd.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/systemd.spec b/systemd.spec
index de0f970..32d9622 100644
--- a/systemd.spec
+++ b/systemd.spec
@@ -935,7 +935,7 @@ if [ $1 -eq 1 ]; then
ln -s "$target" %{_sysconfdir}/systemd/system/default.target || :
# Setup hostname if not yet done so
- if [ ! -f /etc/hostname ] || [ ! -s /etc/hostname ]; then
+ if [ ! -s /etc/hostname ]; then
HOSTNAME=
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network
if [ -n "$HOSTNAME" -a "$HOSTNAME" != "pldmachine" ]; then
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/systemd.git/commitdiff/007ebc135be2ab8dc633752de1aff8e618b04132
More information about the pld-cvs-commit
mailing list