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 Java

 
 
LinkBack Thread Tools
 
Old 02-21-2011, 05:57 PM
Chris Lumens
 
Default If the umount in getFileFromNfs fails, log it.

Related: rhbz#678414
---
loader/nfsinstall.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/loader/nfsinstall.c b/loader/nfsinstall.c
index ee0465d..0e8eb08 100644
--- a/loader/nfsinstall.c
+++ b/loader/nfsinstall.c
@@ -396,8 +396,10 @@ int getFileFromNfs(char * url, char * dest, struct loaderData_s * loaderData) {
free(path);
if (ip) free(ip);

- umount("/tmp/mnt");
- unlink("/tmp/mnt");
+ if (umount("/tmp/mnt") == -1)
+ logMessage(ERROR, "could not unmount /tmp/mnt in getFileFromNfs: %s", strerror(errno));
+ else
+ unlink("/tmp/mnt");

return failed;
}
--
1.7.1.1

_______________________________________________
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 02:36 AM.

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