[Libsysio-commit] HEAD: libsysio/tests sysio_stubs.c test_path.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2003-09-27 20:07:10
|
Update of /cvsroot/libsysio/libsysio/tests In directory sc8-pr-cvs1:/tmp/cvs-serv6348/tests Modified Files: sysio_stubs.c test_path.c Log Message: - Better checking during chdir(). - Added _sysio_p_chdir() to call change working directory with a pnode. - test_path.c doesn't follow symlinks anymore. - sysio_stubs.c defined a bunch of disk ioctl's inappropriately. Removed. - Added fchmod(), fchown(), rename(), link(), utime(). Index: sysio_stubs.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/sysio_stubs.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -b -B -p -r1.2 -r1.3 --- sysio_stubs.c 14 Aug 2003 21:16:33 -0000 1.2 +++ sysio_stubs.c 27 Sep 2003 19:42:03 -0000 1.3 @@ -1245,6 +1245,7 @@ int do_symlink(int argc, char **argv) struct cmd_map ioctl_cmds[] = { +#if 0 { "BLKROSET", BLKROSET, 3 }, { "BLKROGET", BLKROGET, 3 }, { "BLKRRPART", BLKRRPART, 3 }, @@ -1260,6 +1261,7 @@ struct cmd_map ioctl_cmds[] = { { "BLKBSZSET", BLKBSZSET, 3 }, { "FIBMAP", FIBMAP, 3 }, { "FIGETBSZ", FIGETBSZ, 3}, +#endif { NULL, -1, 0 } }; Index: test_path.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_path.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -w -b -B -p -r1.4 -r1.5 --- test_path.c 14 Aug 2003 18:39:33 -0000 1.4 +++ test_path.c 27 Sep 2003 19:42:03 -0000 1.5 @@ -187,7 +187,7 @@ statit(const char *path) /* * Get file attrs. */ - err = stat(path, &stbuf); + err = lstat(path, &stbuf); if (err) { perror(path); return -1; |