X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-um%2Funistd.h;h=512f2257cff520546ce2af59966ec91d83ae49fe;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=5850620bb338596e89174e8ccb52ca9ea5246acb;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/include/asm-um/unistd.h b/include/asm-um/unistd.h index 5850620bb..512f2257c 100644 --- a/include/asm-um/unistd.h +++ b/include/asm-um/unistd.h @@ -48,7 +48,10 @@ extern int um_execve(const char *file, char *const argv[], char *const env[]); set_fs(KERNEL_DS); \ ret = sys(args); \ set_fs(fs); \ - return ret; + if (ret >= 0) \ + return ret; \ + errno = -(long)ret; \ + return -1; static inline long open(const char *pathname, int flags, int mode) {