/*
- $Id: ea_sys.c,v 1.7 2010-04-03 07:11:36 franklahm Exp $
+ $Id: ea_sys.c,v 1.8 2010-04-13 08:05:06 franklahm Exp $
Copyright (c) 2009 Frank Lahm <franklahm@gmail.com>
This program is free software; you can redistribute it and/or modify
memset(rbuf, 0, 4);
*rbuflen += 4;
switch(errno) {
- case ELOOP:
+ case OPEN_NOFOLLOW_ERRNO:
/* its a symlink and client requested O_NOFOLLOW */
LOG(log_debug, logtype_afpd, "sys_getextattr_size(%s): encountered symlink with kXAttrNoFollow", uname);
return AFP_OK;
memset(rbuf, 0, 4);
*rbuflen += 4;
switch(errno) {
- case ELOOP:
+ case OPEN_NOFOLLOW_ERRNO:
/* its a symlink and client requested O_NOFOLLOW */
LOG(log_debug, logtype_afpd, "sys_getextattr_content(%s): encountered symlink with kXAttrNoFollow", uname);
return AFP_OK;
}
if (ret == -1) switch(errno) {
- case ELOOP:
+ case OPEN_NOFOLLOW_ERRNO:
/* its a symlink and client requested O_NOFOLLOW */
ret = AFPERR_BADTYPE;
default:
if (ret == -1) {
switch(errno) {
- case ELOOP:
+ case OPEN_NOFOLLOW_ERRNO:
/* its a symlink and client requested O_NOFOLLOW */
LOG(log_debug, logtype_afpd, "sys_set_ea(%s/%s): encountered symlink with kXAttrNoFollow",
uname, attruname);
if (ret == -1) {
switch(errno) {
- case ELOOP:
+ case OPEN_NOFOLLOW_ERRNO:
/* its a symlink and client requested O_NOFOLLOW */
LOG(log_debug, logtype_afpd, "sys_remove_ea(%s/%s): encountered symlink with kXAttrNoFollow", uname);
return AFP_OK;