[Libsysio-commit] HEAD: libsysio/misc fhi.c fhi.h
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2009-08-17 23:21:38
|
Update of /cvsroot/libsysio/libsysio/misc In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv1697 Modified Files: fhi.c fhi.h Log Message: The fhi_symlink arguments are now from (a path) to (a diroparg) instead of the other way round, which was wrong. Index: fhi.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/misc/fhi.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -w -b -B -p -r1.7 -r1.8 --- fhi.c 17 Aug 2009 23:04:25 -0000 1.7 +++ fhi.c 17 Aug 2009 23:21:26 -0000 1.8 @@ -920,8 +920,8 @@ SYSIO_INTERFACE_NAME(fhi_link)(struct fi } int -SYSIO_INTERFACE_NAME(fhi_symlink)(struct file_handle_info_dirop_args *from, - const char *to) +SYSIO_INTERFACE_NAME(fhi_symlink)(const char *from, + struct file_handle_info_dirop_args *to) { struct intent intent; struct pnode *pno; @@ -929,21 +929,21 @@ SYSIO_INTERFACE_NAME(fhi_symlink)(struct SYSIO_INTERFACE_DISPLAY_BLOCK; SYSIO_INTERFACE_ENTER(fhi_symlink, - "%hY%s%s", - from->fhida_dir, from->fhida_path, - to); + "%s%hY%s", + from, + to->fhida_dir, to->fhida_path); do { INTENT_INIT(&intent, INT_CREAT, NULL, NULL); err = - fhi_namei(from->fhida_dir, - from->fhida_path, + fhi_namei(to->fhida_dir, + to->fhida_path, ND_NEGOK|ND_WANTPARENT, &intent, &pno); if (err) break; - err = _sysio_p_symlink(to, pno); + err = _sysio_p_symlink(from, pno); P_PUT(pno->p_parent); P_PUT(pno); } while (0); Index: fhi.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/misc/fhi.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -b -B -p -r1.3 -r1.4 --- fhi.h 17 Aug 2009 23:02:26 -0000 1.3 +++ fhi.h 17 Aug 2009 23:21:26 -0000 1.4 @@ -173,9 +173,9 @@ extern int SYSIO_INTERFACE_NAME(fhi_link *from, struct file_handle_info_dirop_args *to); -extern int SYSIO_INTERFACE_NAME(fhi_symlink)(struct file_handle_info_dirop_args - *from, - const char *to); +extern int SYSIO_INTERFACE_NAME(fhi_symlink)(const char *from, + struct file_handle_info_dirop_args + *to); extern int SYSIO_INTERFACE_NAME(fhi_mkdir)(struct file_handle_info_dirop_args *where, mode_t mode); |