From a9fe8f28a4a9aaf1d9b84dbc6907849ace87f66e Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Tue, 6 Feb 2001 01:01:46 +0000 Subject: - Added KDE2 PropsDialog Plugin (incomplete) - Fixed some KDE related autoconf stuff - Added PlpDrive class for returning results from rfsv:devinfo - Added auto-watch in ppsocket and finally got rid of the nasty SIGPIPE bug. Now it's no more necessary to ignore SIGPIPE in applications. - Made constructors of rfsv16, rfsv32, rpcs16 and rpcs32 private to enforce use of the factories. - Removed error output in the factories and replaced that by error codes which can be retrieved and evaluated by an application. --- plpbackup/plpbackup.cc | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'plpbackup') diff --git a/plpbackup/plpbackup.cc b/plpbackup/plpbackup.cc index 48e3202..adf8742 100644 --- a/plpbackup/plpbackup.cc +++ b/plpbackup/plpbackup.cc @@ -31,7 +31,6 @@ #include #include #include -#include #include #include #include @@ -292,11 +291,6 @@ main(int argc, char **argv) int op; char dstPath[1024]; struct passwd *pw; - sigset_t sigset; - - sigemptyset(&sigset); - sigaddset(&sigset, SIGPIPE); - sigprocmask(SIG_BLOCK, &sigset, 0L); struct servent *se = getservbyname("psion", "tcp"); endservent(); @@ -417,13 +411,12 @@ main(int argc, char **argv) } else { char drive[3]; u_int32_t devbits; - u_int32_t vtotal, vfree, vattr, vuniqueid; if (a->devlist(devbits) == rfsv::E_PSI_GEN_NONE) { for (i = 0; i < 26; i++) { - string n; - if ((devbits & 1) && a->devinfo(i, vfree, vtotal, vattr, vuniqueid, n) == rfsv::E_PSI_GEN_NONE) { - if (vattr != 7) { + PlpDrive psidr; + if ((devbits & 1) && a->devinfo(i, psidr) == rfsv::E_PSI_GEN_NONE) { + if (psidr.getMediaType() != 7) { sprintf(drive, "%c:\0", 'A' + i); if (verbose > 0) cout << "Scanning Drive " << drive << " ..." << endl; -- cgit v1.2.3