smbfs_vnops.c (2a4ad25895b66b6eb8024b7d4db10628c0f90847) | smbfs_vnops.c (a8d43c90af5122ecff75b55fbaf6d5806674411b) |
---|---|
1/* 2 * Copyright (c) 2000-2001 Boris Popov 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 366 unchanged lines hidden (view full) --- 375 atime = &np->n_atime; 376#endif 377 /* 378 * If file is opened, then we can use handle based calls. 379 * If not, use path based ones. 380 */ 381 if ((np->n_flag & NOPEN) == 0) { 382 if (vcp->vc_flags & SMBV_WIN95) { | 1/* 2 * Copyright (c) 2000-2001 Boris Popov 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 366 unchanged lines hidden (view full) --- 375 atime = &np->n_atime; 376#endif 377 /* 378 * If file is opened, then we can use handle based calls. 379 * If not, use path based ones. 380 */ 381 if ((np->n_flag & NOPEN) == 0) { 382 if (vcp->vc_flags & SMBV_WIN95) { |
383 error = VOP_OPEN(vp, FWRITE, ap->a_cred, ap->a_td); | 383 error = VOP_OPEN(vp, FWRITE, ap->a_cred, ap->a_td, -1); |
384 if (!error) { 385/* error = smbfs_smb_setfattrNT(np, 0, mtime, atime, &scred); 386 VOP_GETATTR(vp, &vattr, ap->a_cred, ap->a_td);*/ 387 if (mtime) 388 np->n_mtime = *mtime; 389 VOP_CLOSE(vp, FWRITE, ap->a_cred, ap->a_td); 390 } 391 } else if ((vcp->vc_sopt.sv_caps & SMB_CAP_NT_SMBS)) { --- 907 unchanged lines hidden --- | 384 if (!error) { 385/* error = smbfs_smb_setfattrNT(np, 0, mtime, atime, &scred); 386 VOP_GETATTR(vp, &vattr, ap->a_cred, ap->a_td);*/ 387 if (mtime) 388 np->n_mtime = *mtime; 389 VOP_CLOSE(vp, FWRITE, ap->a_cred, ap->a_td); 390 } 391 } else if ((vcp->vc_sopt.sv_caps & SMB_CAP_NT_SMBS)) { --- 907 unchanged lines hidden --- |