commit 007ebc135be2ab8dc633752de1aff8e618b04132
Author: Elan Ruusamäe <[email protected]>
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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to