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 > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 04-22-2010, 02:02 PM
Ales Kozumplik
 
Default nfs: off by one error leaves extra slash in a path.

makes unpretty log messages.
---
loader/nfsinstall.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/loader/nfsinstall.c b/loader/nfsinstall.c
index f24acec..b6c3c82 100644
--- a/loader/nfsinstall.c
+++ b/loader/nfsinstall.c
@@ -278,7 +278,7 @@ char * mountNfsImage(struct installMethod * method,

if (!doPwMount(fullPath, "/mnt/stage2", "nfs", mountOpts, NULL)) {
checked_asprintf(&buf, "/mnt/stage2/%s",
- strrchr(directory, '/'));
+ strrchr(directory, '/') + 1);

if (!access(buf, R_OK)) {
logMessage(INFO, "can access %s", buf);
--
1.6.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 04-22-2010, 09:46 PM
David Cantrell
 
Default nfs: off by one error leaves extra slash in a path.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ack.

On Thu, 22 Apr 2010, Ales Kozumplik wrote:


makes unpretty log messages.
---
loader/nfsinstall.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/loader/nfsinstall.c b/loader/nfsinstall.c
index f24acec..b6c3c82 100644
--- a/loader/nfsinstall.c
+++ b/loader/nfsinstall.c
@@ -278,7 +278,7 @@ char * mountNfsImage(struct installMethod * method,

if (!doPwMount(fullPath, "/mnt/stage2", "nfs", mountOpts, NULL)) {
checked_asprintf(&buf, "/mnt/stage2/%s",
- strrchr(directory, '/'));
+ strrchr(directory, '/') + 1);

if (!access(buf, R_OK)) {
logMessage(INFO, "can access %s", buf);



- --
David Cantrell <dcantrell@redhat.com>

Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkvQw5sACgkQ5hsjjIy1VknuMACgnSGho2Hh9W yQ9NY7k2pLIpgq
dK4Anjx/uqFAAxtz7Q6dhwj5LDZZ5Ycn
=VIMr
-----END PGP SIGNATURE-----

_______________________________________________
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 04:33 AM.

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