/*
- * $Id: directory.c,v 1.103 2009-09-11 09:14:16 franklahm Exp $
+ * $Id: directory.c,v 1.104 2009-09-14 00:02:21 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
}
/* ------------------- */
-#ifdef ATACC
-int path_isadir(struct path *o_path)
-{
- return o_path->d_dir != NULL;
-#if 0
- return o_path->m_name == '\0' || /* we are in a it */
- !o_path->st_valid || /* in cache but we can't chdir in it */
- (!o_path->st_errno && S_ISDIR(o_path->st.st_mode)); /* not in cache an can't chdir */
-#endif
-}
-#endif
-
int get_afp_errno(const int param)
{
if (afp_errno != AFPERR_DID1)
/*
- * $Id: directory.h,v 1.26 2009-09-11 09:14:16 franklahm Exp $
+ * $Id: directory.h,v 1.27 2009-09-14 00:02:21 didg Exp $
*
* Copyright (c) 1990,1991 Regents of The University of Michigan.
* All Rights Reserved.
struct stat st;
};
-#ifndef ATACC
static inline int path_isadir(struct path *o_path)
{
return o_path->d_dir != NULL;
(!o_path->st_errno && S_ISDIR(o_path->st.st_mode)); /* not in cache an can't chdir */
#endif
}
-#else
-extern int path_isadir(struct path *o_path);
-#endif
#define DIRTREE_COLOR_RED 0
#define DIRTREE_COLOR_BLACK 1
/*
- * $Id: uam.c,v 1.27 2008-05-16 04:19:42 didg Exp $
+ * $Id: uam.c,v 1.28 2009-09-14 00:02:21 didg Exp $
*
* Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu)
* All Rights Reserved. See COPYRIGHT.
}
/* -- client-side uam functions -- */
-#ifndef ATACC
/* set up stuff for this uam. */
int uam_register(const int type, const char *path, const char *name, ...)
{
return ret;
}
-#endif
-
-#ifdef ATACC
-int uam_register_fn(const int type, const char *path, const char *name, void *fn1, void *fn2,
- void *fn3, void *fn4)
-{
- va_list ap;
- struct uam_obj *uam;
-
- if (!name)
- return -1;
-
- /* see if it already exists. */
- if ((uam = auth_uamfind(type, name, strlen(name)))) {
- if (strcmp(uam->uam_path, path)) {
- /* it exists, but it's not the same module. */
- LOG(log_error, logtype_afpd, "uam_register: \"%s\" already loaded by %s",
- name, path);
- return -1;
- }
- uam->uam_count++;
- return 0;
- }
-
- /* allocate space for uam */
- if ((uam = calloc(1, sizeof(struct uam_obj))) == NULL)
- return -1;
-
- uam->uam_name = name;
- uam->uam_path = strdup(path);
- uam->uam_count++;
-
- switch (type) {
- case UAM_SERVER_LOGIN_EXT: /* expect four arguments */
- uam->u.uam_login.login_ext = fn4;
- uam->u.uam_login.login = fn1;
- uam->u.uam_login.logincont = fn2;
- uam->u.uam_login.logout = fn3;
- break;
- case UAM_SERVER_LOGIN: /* expect three arguments */
- uam->u.uam_login.login_ext = NULL;
- uam->u.uam_login.login = fn1;
- uam->u.uam_login.logincont = fn2;
- uam->u.uam_login.logout = fn3;
- break;
- case UAM_SERVER_CHANGEPW: /* one argument */
- uam->u.uam_changepw = fn1;
- break;
- case UAM_SERVER_PRINTAUTH: /* x arguments */
- default:
- break;
- }
-
- /* attach to other uams */
- if (auth_register(type, uam) < 0) {
- free(uam->uam_path);
- free(uam);
- return -1;
- }
-
- return 0;
-}
-#endif
void uam_unregister(const int type, const char *name)
{
/*
- * $Id: cnid_metad.c,v 1.13 2009-07-21 13:41:16 didg Exp $
+ * $Id: cnid_metad.c,v 1.14 2009-09-14 00:02:21 didg Exp $
*
* Copyright (C) Joerg Lenneis 2003
* All Rights Reserved. See COPYING.
#define WTERMSIG(status) ((status) & 0x7f)
#endif
-#ifdef ATACC
-#define fork aTaC_fork
-#endif
-
/* functions for username and group */
#include <pwd.h>
#include <grp.h>
/*
- * $Id: uams_gss.c,v 1.3 2005-04-28 20:49:50 bfernhomberg Exp $
+ * $Id: uams_gss.c,v 1.4 2009-09-14 00:02:21 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* Copyright (c) 1999 Adrian Sun (asun@u.washington.edu)
#include "config.h"
#endif /* HAVE_CONFIG_H */
-#ifndef ATACC
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
UAM_MODULE_VERSION,
uam_setup, uam_cleanup
};
-#endif
/*
- * $Id: uams_guest.c,v 1.13 2005-04-28 20:49:50 bfernhomberg Exp $
+ * $Id: uams_guest.c,v 1.14 2009-09-14 00:02:21 didg Exp $
*
* (c) 2001 (see COPYING)
*/
#include "config.h"
#endif /* HAVE_CONFIG_H */
-#ifndef ATACC
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
UAM_MODULE_VERSION,
uam_setup, uam_cleanup
};
-#endif
/*
- * $Id: uams_pam.c,v 1.17 2005-04-28 20:49:50 bfernhomberg Exp $
+ * $Id: uams_pam.c,v 1.18 2009-09-14 00:02:21 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* Copyright (c) 1999 Adrian Sun (asun@u.washington.edu)
#include "config.h"
#endif /* HAVE_CONFIG_H */
-#ifndef ATACC
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
UAM_MODULE_VERSION,
uam_setup, uam_cleanup
};
-#endif
/*
- * $Id: uams_passwd.c,v 1.24 2006-12-03 06:04:43 didg Exp $
+ * $Id: uams_passwd.c,v 1.25 2009-09-14 00:02:21 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* Copyright (c) 1999 Adrian Sun (asun@u.washington.edu)
return(0);
}
-#ifdef ATACC
-int uam_setup(const char *path)
-{
- if (uam_register_fn(UAM_SERVER_LOGIN_EXT, path, "Cleartxt Passwrd",
- passwd_login, NULL, NULL, passwd_login_ext) < 0)
- return -1;
- if (uam_register_fn(UAM_SERVER_PRINTAUTH, path, "ClearTxtUAM",
- passwd_printer) < 0)
- return -1;
-
- return 0;
-}
-#else
static int uam_setup(const char *path)
{
if (uam_register(UAM_SERVER_LOGIN_EXT, path, "Cleartxt Passwrd",
return 0;
}
-#endif
-
static void uam_cleanup(void)
{
uam_unregister(UAM_SERVER_LOGIN, "Cleartxt Passwrd");
/*
- * $Id: adouble.h,v 1.40 2009-09-01 14:28:07 franklahm Exp $
+ * $Id: adouble.h,v 1.41 2009-09-14 00:02:21 didg Exp $
* Copyright (c) 1990,1991 Regents of The University of Michigan.
* All Rights Reserved.
*
/* build a resource fork mode from the data fork mode:
* remove X mode and extend header to RW if R or W (W if R for locking),
*/
-#ifndef ATACC
static inline mode_t ad_hf_mode (mode_t mode)
{
mode &= ~(S_IXUSR | S_IXGRP | S_IXOTH);
return mode;
}
-#else
-extern mode_t ad_hf_mode __P((mode_t ));
-#endif
/* ad_read.c/ad_write.c */
extern ssize_t ad_read __P((struct adouble *, const u_int32_t,
/*
- * $Id: ad_open.c,v 1.46 2009-09-11 13:26:05 franklahm Exp $
+ * $Id: ad_open.c,v 1.47 2009-09-14 00:02:21 didg Exp $
*
* Copyright (c) 1999 Adrian Sun (asun@u.washington.edu)
* Copyright (c) 1990,1991 Regents of The University of Michigan.
}
#endif /* AD_VERSION == AD_VERSION2 */
-/* --------------------------- */
-#ifdef ATACC
-mode_t ad_hf_mode (mode_t mode)
-{
- /* we always need RW mode for file owner */
-#if 0
- mode |= S_IRUSR;
-#endif
- mode &= ~(S_IXUSR | S_IXGRP | S_IXOTH);
- /* fnctl lock need write access */
- if ((mode & S_IRUSR))
- mode |= S_IWUSR;
- if ((mode & S_IRGRP))
- mode |= S_IWGRP;
- if ((mode & S_IROTH))
- mode |= S_IWOTH;
- /* if write mode set add read mode */
- if ((mode & S_IWUSR))
- mode |= S_IRUSR;
- if ((mode & S_IWGRP))
- mode |= S_IRGRP;
- if ((mode & S_IWOTH))
- mode |= S_IROTH;
-
- return mode;
-}
-
-#endif
-
/* -------------------------------------
read in the entries
*/
/*
- * $Id: dsi_tcp.c,v 1.13 2009-03-20 09:10:25 franklahm Exp $
+ * $Id: dsi_tcp.c,v 1.14 2009-09-14 00:02:21 didg Exp $
*
* Copyright (c) 1997, 1998 Adrian Sun (asun@zoology.washington.edu)
* All rights reserved. See COPYRIGHT.
exit(EXITERR_CLNT);
}
-#ifdef ATACC
-#define fork aTaC_fork
-#endif
-
static struct itimerval itimer;
/* accept the socket and do a little sanity checking */
static int dsi_tcp_open(DSI *dsi)
#include <atalk/compat.h>
#include <atalk/util.h>
-#ifdef ATACC
-#define fork aTaC_fork
-#endif
static struct itimerval itimer;
/* this creates an open lock file which hangs around until the program