/*
- * $Id: ad_write.c,v 1.10 2009-10-13 22:55:37 didg Exp $
+ * $Id: ad_write.c,v 1.11 2010-03-30 12:55:26 franklahm Exp $
*
* Copyright (c) 1990,1995 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
{
struct stat st;
ssize_t cc;
+
+ if (ad_data_fileno(ad) == -2) {
+ /* It's a symlink */
+ errno = EACCES;
+ return -1;
+ }
if ( eid == ADEID_DFORK ) {
if ( end ) {