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 08-17-2011, 12:52 PM
Martin Sivak
 
Default Put nolock instead of , nolock to options if provided options are empty (#727522)

---
pyanaconda/isys/imount.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/isys/imount.c b/pyanaconda/isys/imount.c
index c1b7493..146a00b 100644
--- a/pyanaconda/isys/imount.c
+++ b/pyanaconda/isys/imount.c
@@ -99,7 +99,7 @@ int mountCommandWrapper(int mode, char *dev, char *where, char *fs,

if (mode == IMOUNT_MODE_MOUNT) {
if (strstr(fs, "nfs")) {
- if (options) {
+ if (options && strlen(options)) { // do not append if the options are empty
if (asprintf(&opts, "%s,nolock", options) == -1) {
fprintf(stderr, "%s: %d: %s
", __func__, __LINE__,
strerror(errno));
--
1.7.4.4

_______________________________________________
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 03:19 PM.

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