[yast-commit] r57303 - /trunk/storage/libstorage/src/Storage.cc

Author: aschnell Date: Mon May 25 12:32:31 2009 New Revision: 57303 URL: http://svn.opensuse.org/viewcvs/yast?rev=57303&view=rev Log: - tmpdir cleanup Modified: trunk/storage/libstorage/src/Storage.cc Modified: trunk/storage/libstorage/src/Storage.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Storage.cc... ============================================================================== --- trunk/storage/libstorage/src/Storage.cc (original) +++ trunk/storage/libstorage/src/Storage.cc Mon May 25 12:32:31 2009 @@ -3312,10 +3312,8 @@ int ret = 0; assertInit(); NfsCo co( this ); - string mdir = tmpDir() + "/tmp_mp"; - unlink( mdir.c_str() ); - rmdir( mdir.c_str() ); - createPath( mdir ); + string mdir = tmpDir() + "/tmp-nfs-mp"; + mkdir(mdir.c_str(), 0777); ret = co.addNfs( nfsDev, 0, "" ); if( !opts.empty() ) co.vBegin()->setFstabOption( opts ); @@ -3340,9 +3338,10 @@ sizeK = getDfSize( mdir ); ret = co.vBegin()->umount( mdir ); } + rmdir(mdir.c_str()); y2mil( "name:" << nfsDev << " opts:" << opts << " ret:" << ret << " sizeK:" << sizeK ); - return( ret ); + return ret; } int -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org