[rhel5-branch 2/2] Do not leave the initial slash in path in getHostandPath() (#505424)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The RHEL5 loader never expects the slash at the start of a server-side path and
prepends it automatically. This convention (which in itself is wrong and
shouldn't be adhered to in rawhide) has been broken by a4e02def.
---
 loader2/kickstart.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/loader2/kickstart.c b/loader2/kickstart.c
index 475de04..8530e3e 100644
--- a/loader2/kickstart.c
+++ b/loader2/kickstart.c
@@ -310,7 +310,7 @@ void getHostPathandLogin(char * ksSource, char **host, char ** file, char ** log
     tmp = strchr(*host, '/');
 
     if (tmp) {
-        *file = strdup(tmp);
+        *file = strdup(tmp +  1);
         *tmp = '\0';
     } else {
         *file = malloc(sizeof(char *));
-- 
1.6.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux