diff options
author | Fritz Elfert <felfert@to.com> | 2001-03-06 17:13:01 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2001-03-06 17:13:01 +0000 |
commit | fd8c3ec28d9f721e15ee89de412ad565f94e79d3 (patch) | |
tree | 70360d190779249f9bd33150cfa0052d64d81e7a /plpbackup | |
parent | 276db8fe7efa26e83310ecffddca044751fd4ab3 (diff) | |
download | plptools-fd8c3ec28d9f721e15ee89de412ad565f94e79d3.tar.gz plptools-fd8c3ec28d9f721e15ee89de412ad565f94e79d3.tar.bz2 plptools-fd8c3ec28d9f721e15ee89de412ad565f94e79d3.zip |
KPsion: added format stuff.
Diffstat (limited to 'plpbackup')
-rw-r--r-- | plpbackup/plpbackup.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plpbackup/plpbackup.cc b/plpbackup/plpbackup.cc index adf8742..b10eff1 100644 --- a/plpbackup/plpbackup.cc +++ b/plpbackup/plpbackup.cc @@ -127,7 +127,7 @@ runrestore(rfsv *a, rpcs *r) { return 1; } ip >> cmd >> arg; - + if (strcmp(cmd, "#plpbackup") || strcmp(arg, "processlist")) { ip.close(); cerr << "Error: " << psfile << @@ -247,7 +247,7 @@ mkdirp(char *path) { *p = '\0'; switch (mkdir(path, S_IRWXU|S_IRWXG)) { struct stat stbuf; - + case 0: break; default: @@ -346,7 +346,7 @@ main(int argc, char **argv) cerr << "Could not get user's home directory from /etc/passwd" << endl; exit(-1); } - + skt = new ppsocket(); if (!skt->connect(NULL, sockNum)) { cerr << "plpbackup: could not connect to ncpd" << endl; @@ -395,7 +395,7 @@ main(int argc, char **argv) } } else cout << "all drives"; - + cout << " to " << dstPath << endl; } if (verbose > 0) { @@ -415,7 +415,7 @@ main(int argc, char **argv) if (a->devlist(devbits) == rfsv::E_PSI_GEN_NONE) { for (i = 0; i < 26; i++) { PlpDrive psidr; - if ((devbits & 1) && a->devinfo(i, psidr) == rfsv::E_PSI_GEN_NONE) { + if ((devbits & 1) && a->devinfo(i + 'A', psidr) == rfsv::E_PSI_GEN_NONE) { if (psidr.getMediaType() != 7) { sprintf(drive, "%c:\0", 'A' + i); if (verbose > 0) |