From c9df8aa9cdd7400c346e9ef318a52d7256a015f0 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sun, 18 Aug 2002 20:28:16 +0000 Subject: O_NOFOLLOW does not exist on solaris 8 ?? (This used to be commit 4280300d80d831b78ca50a0a4325b9e239a8bb63) --- source3/torture/cmd_vfs.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/torture') diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c index eb934932ea..680d5bdfdc 100644 --- a/source3/torture/cmd_vfs.c +++ b/source3/torture/cmd_vfs.c @@ -213,7 +213,9 @@ static NTSTATUS cmd_open(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, c printf(" A = O_APPEND\n"); printf(" N = O_NONBLOCK/O_NDELAY\n"); printf(" S = O_SYNC\n"); +#ifdef O_NOFOLLOW printf(" F = O_NOFOLLOW\n"); +#endif printf(" mode: see open.2\n"); printf(" mode is ignored if C flag not present\n"); printf(" mode defaults to 00400\n"); @@ -250,9 +252,11 @@ static NTSTATUS cmd_open(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, c case 'S': flags |= O_SYNC; break; +#ifdef O_NOFOLLOW case 'F': flags |= O_NOFOLLOW; break; +#endif default: printf("open: error=-1 (invalid flag!)\n"); return NT_STATUS_UNSUCCESSFUL; -- cgit