pkgsrc/net/sharity-light/patches/patch-ac
mef f6f4e187ce Updated net/sharity-light 1.2 to 1.3
------------------------------------
(Some lines out of following lines doesn't seem to be included in
previous commit log, so ..including ..)

- Finding the GMT offset of the local time is not straight forward. Added
  an ifdef in kernel.c/kernel_init() to handle Solaris' way of doing it.
- INADDR_NONE is not defined on Solaris. Added workaround to rumba.c

* Release Sharity-Light 1.2 1998-11-24

- Added aSYSTEM and aHIDDEN attributes to smb_proc_unlink(), this allows
  deleting dotfiles on a samba server.

- Added contributed recode code for russian character set (compile time
  option)

* Release Sharity-Light 1.3 2003-12-29
2016-09-01 12:58:46 +00:00

19 lines
609 B
Text

$NetBSD: patch-ac,v 1.2 2016/09/01 12:58:46 mef Exp $
--- proc.c.orig 2003-12-29 20:11:57.000000000 +0900
+++ proc.c 2016-09-01 21:49:38.000000000 +0900
@@ -823,12 +823,13 @@ smb_proc_mv(struct smb_server *server,
char *p;
char *buf = server->packet;
int result;
+ const word o_attr = aSYSTEM | aHIDDEN;
smb_lock_server(server);
retry:
p = smb_setup_header(server, SMBmv, 1, olen + nlen + 4);
- WSET(buf, smb_vwv0, 0);
+ WSET(buf, smb_vwv0, o_attr);
p = smb_encode_ascii(p, opath, olen);
smb_encode_ascii(p, npath, olen);