/*
- * $Id: ad_size.c,v 1.7 2006-09-29 09:39:16 didg Exp $
+ * $Id: ad_size.c,v 1.8 2010-02-26 14:13:16 didg Exp $
*
* Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
* All rights reserved. See COPYRIGHT.
#include "config.h"
#endif /* HAVE_CONFIG_H */
+#include <string.h>
#include <atalk/logger.h>
#include <atalk/adouble.h>
{
if (eid == ADEID_DFORK) {
struct stat st;
-
+
+ if (ad->ad_data_fork.adf_syml)
+ return strlen(ad->ad_data_fork.adf_syml);
+
if (fstat(ad_data_fileno(ad), &st) < 0)
return 0;
return st.st_size;