summaryrefslogtreecommitdiffstats
path: root/kioslave
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2014-10-05 16:34:34 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-12-23 02:22:51 +0100
commitd1be1be19f3e2b27c834763a8a18a2b93e98bc3c (patch)
tree94dc88203996fdaf62b7d77139f458b790b3b637 /kioslave
parent2e79465b1085dcd8a594f0bbee83db01f454ce69 (diff)
downloadtdelibs-d1be1be19f3e2b27c834763a8a18a2b93e98bc3c.tar.gz
tdelibs-d1be1be19f3e2b27c834763a8a18a2b93e98bc3c.zip
Add 'tdesu' to tdeioslave_file mount/umount command on openbsd
(cherry picked from commit b588c6e6bde4c3330b2e3378ca3447b16cb89bbf)
Diffstat (limited to 'kioslave')
-rw-r--r--kioslave/file/file.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/kioslave/file/file.cc b/kioslave/file/file.cc
index 79904bb50..7632ee9a9 100644
--- a/kioslave/file/file.cc
+++ b/kioslave/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", "kdesu", 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( KIO::ERR_COULD_NOT_UNMOUNT, i18n("Could not find program \"umount\""));
return;
}
+#ifdef __OpenBSD__
+ buffer.sprintf( "%s %s %s 2>%s", "kdesu", umountProg.latin1(), TQFile::encodeName(KProcess::quote(_point)).data(), tmp );
+#else
buffer.sprintf( "%s %s 2>%s", umountProg.latin1(), TQFile::encodeName(KProcess::quote(_point)).data(), tmp );
+#endif
system( buffer.data() );
#endif /* HAVE_VOLMGT */