diff options
author | François Andriot <[email protected]> | 2014-10-05 16:34:34 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2014-10-05 16:34:34 +0200 |
commit | b588c6e6bde4c3330b2e3378ca3447b16cb89bbf (patch) | |
tree | 48a9b914e331e391ca9d51bbfcf588cd504f0a9c /tdeioslave | |
parent | 8f3cf10d983400f11af2cd73fd7bb585365e0413 (diff) | |
download | tdelibs-b588c6e6bde4c3330b2e3378ca3447b16cb89bbf.tar.gz tdelibs-b588c6e6bde4c3330b2e3378ca3447b16cb89bbf.zip |
Add 'tdesu' to tdeioslave_file mount/umount command on openbsd
Diffstat (limited to 'tdeioslave')
-rw-r--r-- | tdeioslave/file/file.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tdeioslave/file/file.cc b/tdeioslave/file/file.cc index b13357fe6..ad1cc5574 100644 --- a/tdeioslave/file/file.cc +++ b/tdeioslave/file/file.cc @@ -1455,6 +1455,9 @@ void FileProtocol::mount( bool _ro, const char *_fstype, const TQString& _dev, c dev.data() point.data() tmp ); +#elif defined(__OpenBSD__) + buffer.sprintf( "%s %s %s -t %s %s %s 2>%s", "tdesu", mountProg.latin1(), readonly.data(), + fstype.data(), dev.data(), point.data(), tmp ); #else buffer.sprintf( "%s %s -t %s %s %s 2>%s", mountProg.latin1(), readonly.data(), fstype.data(), dev.data(), point.data(), tmp ); @@ -1614,7 +1617,11 @@ void FileProtocol::unmount( const TQString& _point ) error( TDEIO::ERR_COULD_NOT_UNMOUNT, i18n("Could not find program \"umount\"")); return; } +#ifdef __OpenBSD__ + buffer.sprintf( "%s %s %s 2>%s", "tdesu", umountProg.latin1(), TQFile::encodeName(TDEProcess::quote(_point)).data(), tmp ); +#else buffer.sprintf( "%s %s 2>%s", umountProg.latin1(), TQFile::encodeName(TDEProcess::quote(_point)).data(), tmp ); +#endif system( buffer.data() ); #endif /* HAVE_VOLMGT */ |