/*
- * $Id: afs.c,v 1.5 2001-12-03 05:03:38 jmarcus Exp $
+ * $Id: afs.c,v 1.10 2002-03-24 01:23:40 sibaz Exp $
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
*/
#include <string.h>
#include <sys/types.h>
-#include <sys/syslog.h>
+#include <atalk/logger.h>
#include <netatalk/endian.h>
#include <netinet/in.h>
#include <afs/venus.h>
return;
}
- accessmode( upath, &ma, dir );
+ accessmode( path, &ma, dir );
return;
}
ucase( realm );
if ( *realm == '\0' ) {
if ( krb_get_lrealm( realm, 1 ) != KSUCCESS ) {
- syslog( LOG_ERR, "krb_get_lrealm failed" );
+ LOG(log_error, logtype_afpd, "krb_get_lrealm failed" );
return( AFPERR_BADUAM );
}
}
ibuf += len;
newpw[ len ] = '\0';
- syslog( LOG_INFO,
- "changing password for <%s>.<%s>@<%s>", name, instance, realm );
+ LOG(log_info, logtype_afpd,
+ "changing password for <%s>.<%s>@<%s>", name, instance, realm );
ka_StringToKey( oldpw, realm, &oldkey );
memset( oldpw, 0, sizeof( oldpw ));
return( AFPERR_BADUAM );
}
- syslog( LOG_DEBUG, "password changed succeeded" );
+ LOG(log_debug, logtype_afpd, "password changed succeeded" );
return( AFP_OK );
}