31 lines
1009 B
Diff
31 lines
1009 B
Diff
--- glusterfs-coreutils-c155815/src/glfs-ls.c.orig 2018-03-20 07:31:33.552119109 -0400
|
|
+++ glusterfs-coreutils-c155815/src/glfs-ls.c 2018-03-20 07:32:50.294119109 -0400
|
|
@@ -432,7 +432,7 @@
|
|
{
|
|
char *pattern = NULL;
|
|
char *real_path = NULL;
|
|
- int ret;
|
|
+ int ret = -1;
|
|
struct stat statbuf;
|
|
|
|
/**
|
|
@@ -459,7 +459,6 @@
|
|
if (pattern && strchr (pattern, '*') == NULL) {
|
|
if (glfs_stat (fs, path, &statbuf)) {
|
|
error (0, errno, "failed to access %s", state->url);
|
|
- ret = -1;
|
|
goto out;
|
|
}
|
|
|
|
--- glusterfs-coreutils-c155815/src/glfs-tail.c.orig 2018-03-20 07:33:02.133119109 -0400
|
|
+++ glusterfs-coreutils-c155815/src/glfs-tail.c 2018-03-20 07:33:46.237119109 -0400
|
|
@@ -567,7 +567,7 @@
|
|
{
|
|
int argc = ctx->argc;
|
|
char **argv = ctx->argv;
|
|
- int ret;
|
|
+ int ret = -1;
|
|
|
|
state = init_state ();
|
|
if (state == NULL) {
|