OSDN Git Service

this condition should be error before change, should be rc instead of ret
authorbtian1 <baofeng.tian@intel.com>
Fri, 19 Feb 2016 01:33:38 +0000 (09:33 +0800)
committerPeter Jones <pjones@redhat.com>
Fri, 19 Feb 2016 18:50:06 +0000 (13:50 -0500)
src/vars.c

index 2a276de..dcbe3cb 100644 (file)
@@ -416,7 +416,7 @@ _vars_chmod_variable(char *path, mode_t mode)
                                ret = -1;
                        }
                        free(new_path);
-               } else if (ret < 0) {
+               } else if (rc < 0) {
                        if (saved_errno == 0)
                                saved_errno = errno;
                        ret = -1;