]> arthur.barton.de Git - netatalk.git/commit
desktop.c:
authordidg <didg>
Sun, 16 Feb 2003 12:35:04 +0000 (12:35 +0000)
committerdidg <didg>
Sun, 16 Feb 2003 12:35:04 +0000 (12:35 +0000)
commit22ce5ab8206909a9972ee1b95cdd65c3ae403ae6
tree0aa455f1a7bc25581d05b44c43c10cf1dd0204fd
parente89e97de6eaa1300478a5f13eff1b0b1087bb299
desktop.c:
more if ((A = B) == C) to (C == (A = B))

directory.c:
deletecurdir() move cnid_delete inside opendir() closedir()

fork.c:
getmetada() use struct path in parameter

afp_openfork() we need to keep track if we (re)open the ressource fork.
it was a problem if:
- there's no ressource fork
- the data fork is open read write
- the ressource fork is open read write
- the data fork is closed.
With a Mac it was an issue with noadouble and no .AppleDouble folder,
otherwise the ressource fork is always created before opening the data fork.
(if it can't, because permission on .AppleDouble, then the RF can't be open
read write).

enumerate.c:
more if ((A = B) == C) to (C == (A = B))
adddir() free allocated memory

file.c:
use the new getmetada() format

copyfile() use ad_open, with the new ADFLAGS_NOHF attrib., rather than
open syscall.

deletefile() move cnid_delete inside open() close()

afp_creatfile() if there's an error in ressource fork creation then delete
the data fork if any. It's the reason for ADFLAGS_NOHF, we need to be sure
that the data fork was created by us, ie we have a file descriptor for it.

filedir.c:
remove cnid_delete(), now in deletefile()

adouble.h:
add a new attrib. ADFLAGS_NOHF mean don't return an error if there's
no ressource fork.
Helper for using ad_open in copyfile() and in afp_createfile()

cnid.h:
add CNID_ERR_CLOSE error, not used for now.

ad_lock.c:
ad_fcntl_lock() a previous fix a typo =/==, and now we have a
reference used after freed in realloc.

hf2off() df2off() change int to off_t

ad_open.c:
ad_open() ADFLAGS_NOHF attrib
etc/afpd/desktop.c
etc/afpd/directory.c
etc/afpd/enumerate.c
etc/afpd/file.c
etc/afpd/file.h
etc/afpd/filedir.c
etc/afpd/fork.c
include/atalk/adouble.h
include/atalk/cnid.h
libatalk/adouble/ad_lock.c
libatalk/adouble/ad_open.c