[systemd-commits] src/core

Dave Reisner dreisner at kemper.freedesktop.org
Sat Nov 3 17:13:59 PDT 2012


 src/core/hostname-setup.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 075ff6863d39c8c2846b53e31707605545b1f17e
Author: Dave Reisner <dreisner at archlinux.org>
Date:   Sat Nov 3 20:11:52 2012 -0400

    drop Arch Linux support for reading /etc/rc.conf

diff --git a/src/core/hostname-setup.c b/src/core/hostname-setup.c
index fd111a6..dbd2227 100644
--- a/src/core/hostname-setup.c
+++ b/src/core/hostname-setup.c
@@ -34,8 +34,6 @@
 #define FILENAME "/etc/sysconfig/network"
 #elif defined(TARGET_SUSE) || defined(TARGET_SLACKWARE)
 #define FILENAME "/etc/HOSTNAME"
-#elif defined(TARGET_ARCH)
-#define FILENAME "/etc/rc.conf"
 #elif defined(TARGET_GENTOO)
 #define FILENAME "/etc/conf.d/hostname"
 #endif
@@ -65,7 +63,7 @@ static int read_and_strip_hostname(const char *path, char **hn) {
 
 static int read_distro_hostname(char **hn) {
 
-#if defined(TARGET_ARCH) || defined(TARGET_GENTOO) || defined(TARGET_ALTLINUX) || defined(TARGET_MANDRIVA) || defined(TARGET_MAGEIA)
+#if defined(TARGET_GENTOO) || defined(TARGET_ALTLINUX) || defined(TARGET_MANDRIVA) || defined(TARGET_MAGEIA)
         int r;
         _cleanup_fclose_ FILE *f = NULL;
 



More information about the systemd-commits mailing list