/*
- * $Id: ad_open.c,v 1.69 2010-02-10 14:05:37 franklahm Exp $
+ * $Id: ad_open.c,v 1.70 2010-03-01 21:11:06 didg Exp $
*
* Copyright (c) 1999 Adrian Sun (asun@u.washington.edu)
* Copyright (c) 1990,1991 Regents of The University of Michigan.
return -1;
}
ad_refresh(ad);
+ /* it's not new anymore */
+ ad->ad_md->adf_flags &= ~( O_TRUNC | O_CREAT );
ad->ad_md->adf_refcount++;
goto sfm;
}