diff options
author | Simo Sorce <idra@samba.org> | 2002-08-18 20:28:16 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2002-08-18 20:28:16 +0000 |
commit | c9df8aa9cdd7400c346e9ef318a52d7256a015f0 (patch) | |
tree | 1147083d506119b7ec79f1d7abcbe60e969435c0 | |
parent | c0f37b336bcbcab9c88c65ea8c4aabc718690535 (diff) | |
download | samba-c9df8aa9cdd7400c346e9ef318a52d7256a015f0.tar.gz samba-c9df8aa9cdd7400c346e9ef318a52d7256a015f0.tar.bz2 samba-c9df8aa9cdd7400c346e9ef318a52d7256a015f0.zip |
O_NOFOLLOW does not exist on solaris 8 ??
(This used to be commit 4280300d80d831b78ca50a0a4325b9e239a8bb63)
-rw-r--r-- | source3/torture/cmd_vfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |