forked from pool/xfsdump
27 lines
877 B
Diff
27 lines
877 B
Diff
Index: xfsdump/librmt/rmtopen.c
|
|
===================================================================
|
|
RCS file: /cvs/xfs-cmds/xfsdump/librmt/rmtopen.c,v
|
|
retrieving revision 1.13
|
|
retrieving revision 1.14
|
|
diff -u -p -r1.13 -r1.14
|
|
--- xfsdump/librmt/rmtopen.c 9 Nov 2005 05:04:17 -0000 1.13
|
|
+++ xfsdump/librmt/rmtopen.c 18 Nov 2008 02:25:38 -0000 1.14
|
|
@@ -171,7 +171,7 @@ static int _rmt_open (char *path, int of
|
|
}
|
|
|
|
rmt_f = popen(cmd, "r");
|
|
- if (rmt_f < 0) {
|
|
+ if (rmt_f == NULL) {
|
|
_rmt_msg(RMTWARN, _(
|
|
"rmtopen: failed to detect remote host type using \"%s\"\n"),
|
|
cmd);
|
|
@@ -183,7 +183,7 @@ static int _rmt_open (char *path, int of
|
|
char *c = fgets(uname, sizeof(uname), rmt_f);
|
|
pclose(rmt_f);
|
|
|
|
- if (c < 0) {
|
|
+ if (c == NULL) {
|
|
_rmt_msg(RMTWARN, _(
|
|
"rmtopen: failed to detect remote host type reading \"%s\"\n"),
|
|
cmd);
|