FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Red Hat Linux

 
 
LinkBack Thread Tools
 
Old 03-01-2010, 12:42 PM
Ales Kozumplik
 
Default Do not leave the initial slash in path in getHostandPath() (#505424)

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 = '';
} else {
*file = malloc(sizeof(char *));
--
1.6.6

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

Thread Tools




All times are GMT. The time now is 01:31 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org