[master 2/2] nfs: off by one error leaves extra slash in a path.

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

 



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@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