Fixed "get" & "put" error opening of host-os file detection
authorshort <>
Sun, 23 Mar 2003 00:12:01 +0000 (00:12 +0000)
committershort <>
Sun, 23 Mar 2003 00:12:01 +0000 (00:12 +0000)
src/client/cmdline/cmd_get.c
src/client/cmdline/cmd_put.c

index ea213d7..0694f42 100644 (file)
@@ -75,7 +75,7 @@ char *s;
                        targetfile=s+1;
                }
 
-       if (!(fdtgt=open(targetfile,
+       if (-1==(fdtgt=open(targetfile,
                        O_CREAT|O_WRONLY        /* flags */
 #ifdef O_BINARY
                                        | O_BINARY
index bebd5b5..d6564f0 100644 (file)
@@ -75,7 +75,7 @@ gchar *sourcefile_basename;
                g_free(sourcefile_basename);
                }
 
-       if (!(fdsrc=open(sourcefile,O_RDONLY
+       if (-1==(fdsrc=open(sourcefile,O_RDONLY
 #ifdef O_BINARY
                        | O_BINARY
 #endif /* O_BINARY */