Index: common/cmd_jffs2.c =================================================================== diff -u -b -B -r1.2 cmd_jffs2.c --- common/cmd_jffs2.c 3 Jan 2005 15:13:20 -0000 1.2 +++ common/cmd_jffs2.c 15 Jul 2005 08:25:48 -0000 @@ -169,5 +169,5 @@ return !(size > 0); } puts ("Active partition not valid\n"); - return 0; + return 1; } int @@ -195,2 +195,2 @@ ret = jffs2_1pass_ls(part, filename); } - return (ret == 1); + return ret ? 0 : 1; } puts ("Active partition not valid\n"); - return 0; + return 1; } int @@ -223,2 +223,2 @@ ret = jffs2_1pass_info(part); } - return (ret == 1); + return ret ? 0 : 1; } puts ("Active partition not valid\n"); - return 0; + return 1; } #ifndef CFG_JFFS_SINGLE_PART @@ -241,4 +241,4 @@ tmp_part = simple_strtoul(argv[1], NULL, 16); }else{ puts ("Need partition number in argument list\n"); - return 0; + return 1; } @@ -254,1 +254,1 @@ } printf("Partition %d is not valid partiton\n",tmp_part); - return 0; + return 1; } #endif /* CFG_JFFS_SINGLE_PART */ Index: fs/jffs2/jffs2_1pass.c =================================================================== diff -u -b -B -r1.2 jffs2_1pass.c --- fs/jffs2/jffs2_1pass.c 20 May 2005 09:29:54 -0000 1.2 +++ fs/jffs2/jffs2_1pass.c 15 Jul 2005 08:25:50 -0000 @@ -1220,5 +1220,5 @@ jffs2_1pass_ls(struct part_info * part, const char *fname) { struct b_lists *pl; - long ret = 0; + long ret = 1; u32 inode; if (! (pl = jffs2_get_list(part, "ls"))) @@ -1247,1 +1247,1 @@ { struct b_lists *pl; - long ret = 0; + long ret = 1; u32 inode; if (! (pl = jffs2_get_list(part, "load")))