1310490Scy2014-10-28  Christos Zoulas <christos@zoulas.com>
2131702Smbr
3174294Sobrien	*******************************************************************
4310490Scy	*** Released am-utils-6.2					***
5174294Sobrien	*******************************************************************
6131702Smbr
7310490Scy	* add ylwrap.amd, sick and tired of patching broken ylwrap.
8131702Smbr
9310490Scy2014-09-05  Christos Zoulas <christos@zoulas.com>
10310490Scy
11310490Scy	* factor out the size check for both readdir methods
12310490Scy	  (raven at themaw.net)
13310490Scy
14310490Scy2014-09-03  Christos Zoulas <christos@zoulas.com>
15310490Scy
16310490Scy	* configure test for 64 bit xdr function (raven at themaw.net)
17310490Scy
18310490Scy2014-09-01  Christos Zoulas <christos@zoulas.com>
19310490Scy
20310490Scy	* bug fix from raven at themaw.net to prevent writing v3 handle
21310490Scy	  to a v2 structure.
22310490Scy
23310490Scy2014-07-21  Christos Zoulas <christos@zoulas.com>
24310490Scy
25310490Scy	* fix permission problems with access
26310490Scy	* auto_nfs_version = 3 now works for me.
27310490Scy
28310490Scy2014-07-20  Christos Zoulas <christos@zoulas.com>
29310490Scy
30310490Scy	* refresh some autoconf files
31310490Scy	* force autoconf version since earlier versions don't work
32310490Scy	* changes from raven at themaw.net to support NFSv3 for automounted
33310490Scy	  toplevel filesystems presented to the list in May. A few bug fixes
34310490Scy	  and integration changes by me. The code now works well enough to
35310490Scy	  mount the filesystem with NFSv3 and automount children but readdir
36310490Scy	  does not work yet (so no listing of automounted filesystems).
37310490Scy	  The new code is not enabled by default. To enable use
38310490Scy		auto_nfs_version = 3
39310490Scy	  in your configuration file.
40310490Scy
41310490Scy2014-03-26  Christos Zoulas <christos@zoulas.com>
42310490Scy
43310490Scy	From Ian Kent <ikent@redhat.com>
44310490Scy
45310490Scy	* use mktemp in scripts/fixrmtab
46310490Scy	* fix documentatio nits
47310490Scy	* [linux] Add ext2, ext3, ext4 specific mount options
48310490Scy	* fix tcpwrappers (hosts.{allow,deny} problems for specific host
49310490Scy	  entries
50310490Scy
51310490Scy2014-03-20  Christos Zoulas <christos@zoulas.com>
52310490Scy
53310490Scy
54310490Scy	* don't background autofs umount
55310490Scy	* avoid fh NULL dereference on umount
56310490Scy	* handle ENOENT umount return for autofs mounts
57310490Scy	* fix error message in get_nfs_version
58310490Scy	* fix debug log deadlock
59310490Scy	* [linux] retry umount on EBUSY
60310490Scy	* handle failed umount on exit
61310490Scy
62310490Scy2014-03-09  Christos Zoulas <christos@zoulas.com>
63310490Scy
64310490Scy	* Remove BSD advertising clause.
65310490Scy	* Remove expn program which is not used by anything
66310490Scy
67310490Scy2013-12-05  Christos Zoulas <christos@zoulas.com>
68310490Scy
69310490Scy	* Change the way we handle multiple lex scanners and yacc parsers
70310490Scy	  in a single program. Our old patch to ylwrap does not work anymore
71310490Scy	  because the bison parsers need shared symbols that start with yy
72310490Scy	  and we can't easily select which ones work. So now we use -P and
73310490Scy	  -p to let lex and yacc do the work for us. This requires a patch
74310490Scy	  to ylwrap, but it is smaller.
75310490Scy
76310490Scy
77310490Scy2013-12-05  Christos Zoulas <christos@zoulas.com>
78310490Scy
79310490Scy	* Change the way we handle multiple lex scanners and yacc parsers
80310490Scy	  in a single program. Our old patch to ylwrap does not work anymore
81310490Scy	  because the bison parsers need shared symbols that start with yy
82310490Scy	  and we can't easily select which ones work. So now we use -P and
83310490Scy	  -p to let lex and yacc do the work for us. This requires a patch
84310490Scy	  to ylwrap, but it is smaller.
85310490Scy
86310490Scy2013-05-14  Christos Zoulas <christos@zoulas.com>
87310490Scy
88310490Scy	* update to handle new autoconf and regen files
89310490Scy
90310490Scy2012-11-23  Christos Zoulas <christos@zoulas.com>
91310490Scy
92310490Scy	* recognize mountport=, noacl options
93310490Scy	* simplify the bootstrap process, by forcing
94310490Scy	  all the files to be rebuild with autoreconf -f - i
95310490Scy
96310490Scy2012-10-03  Christos Zoulas <christos@zoulas.com>
97310490Scy
98310490Scy	* add missing ops_nfs4.c to the Makefile.am
99310490Scy
100310490Scy2012-09-14  Christos Zoulas <christos@zoulas.com>
101310490Scy
102310490Scy	* add locking option handling for lustre
103310490Scy	* fix noatime, nodiratime, mandlock for linux
104310490Scy
105310490Scy2012-07-25  Christos Zoulas <christos@zoulas.com>
106310490Scy
107310490Scy	* bug fixes for lustre rhost parsing
108310490Scy
109310490Scy2012-06-27  Christos Zoulas <christos@zoulas.com>
110310490Scy
111310490Scy	* Disable 1/2-baked sun map support to avoid SIGSEGV
112310490Scy
113310490Scy2012-06-16  Christos Zoulas <christos@zoulas.com>
114310490Scy
115310490Scy	*******************************************************************
116310490Scy	*** Released am-utils-6.2-rc1					***
117310490Scy	*******************************************************************
118310490Scy
119310490Scy	* Fix libtool.m4 to work with later versions of autoconf.
120310490Scy	* In buildall, use eval so that quoted strings work
121310490Scy	* Centralize nfs version checking function, and introduce
122310490Scy	  new configuration variable nfs_vers_ping, which is the
123310490Scy	  max version we ping for. This is not documented yet, because
124310490Scy	  there might be a better way separate the max version we can
125310490Scy	  use vs the max version we ping for.
126310490Scy
127310490Scy2012-06-09  Christos Zoulas <christos@zoulas.com>
128310490Scy
129310490Scy	* fix issue with parsing nfsv4 security option strings
130310490Scy
131310490Scy2012-05-01  Christos Zoulas <christos@zoulas.com>
132310490Scy
133310490Scy	* Handle EPERM return from v4 file handles
134310490Scy	  in old linux kernels
135310490Scy
136310490Scy2012-03-09  Christos Zoulas <christos@zoulas.com>
137310490Scy
138310490Scy	* fix linux autofs detection
139310490Scy	* fix wrong types in new amq mount xdr processing
140310490Scy
141310490Scy2012-01-25  Christos Zoulas <christos@zoulas.com>
142310490Scy
143310490Scy	* FreeBSD portability fixes
144310490Scy
145310490Scy2012-01-23  Christos Zoulas <christos@zoulas.com>
146310490Scy
147310490Scy	* Avoid type punned warnings
148310490Scy
149310490Scy2011-12-29  Christos Zoulas <christos@zoulas.com>
150310490Scy
151310490Scy	* fix bug I introduced in get_nfs_version that caused it to return 0
152310490Scy	* add direct support for ext{2,3,4}
153310490Scy
154310490Scy2011-12-15  Christos Zoulas <christos@zoulas.com>
155310490Scy
156310490Scy	* Include <linux/fs.h> on linux, to grab extra mount flags
157310490Scy	* Add support for lustre
158310490Scy
159310490Scy2011-11-28  Christos Zoulas <christos@zoulas.com>
160310490Scy
161310490Scy	* For nfsl mounts, match against either the short local
162310490Scy	  host name or the fqdn name.
163310490Scy
164310490Scy2011-10-06  Christos Zoulas <christos@zoulas.com>
165310490Scy
166310490Scy	* Add NFSv4 support (loosely based on Ramya's code).
167310490Scy	  Currently if the NFSv4 mount fails with ENOENT we fail
168310490Scy	  back to NFSv3, unless -DNO_FALLBACK.
169310490Scy	* Replace strdup with xstrdup. It is not nice to replace
170310490Scy	  system functions with ones that behave differently.
171310490Scy	* Add various consistency checks (caller function checks
172310490Scy	  variable for NULL, but callee does not).
173310490Scy	* Fix error handling in various paths.
174310490Scy	* Don't check before using XFREE(). free(NULL) works.
175310490Scy
176310490Scy2011-09-15  Christos Zoulas <christos@zoulas.com>
177310490Scy
178310490Scy	* amq -i addition (prints info about the map files)
179310490Scy
180310490Scy2011-09-14  Christos Zoulas <christos@zoulas.com>
181310490Scy
182310490Scy	* Solaris OS and compiler fixes from:
183310490Scy		Hofmann, Frank <Frank.Hofmann@morganstanley.com>
184310490Scy		Sayle, Alex <Alex.Sayle@morganstanley.com>
185310490Scy	  - (void)&var generates warnings, removed
186310490Scy	  - __inline is invalid, changed with inline
187310490Scy	  - <sys/socket.h> and other headers have extra dependendcies
188310490Scy			`
189310490Scy2011-08-11  Christos Zoulas <christos@zoulas.com>
190310490Scy
191310490Scy	* fix potential buffer overflow in expand_error()
192310490Scy	  (Richard Kettlewell). Does not seem to be exploitable.
193310490Scy
194310490Scy	* simplify %option parsing to appease ancient flex.
195310490Scy
196310490Scy2011-06-21  Christos Zoulas <christos@zoulas.com>
197310490Scy
198310490Scy	* add support for linux autofs version 5 (untested)
199310490Scy
200310490Scy2011-06-18  Christos Zoulas <christos@zoulas.com>
201310490Scy
202310490Scy	* roll back to an older version of libtool that works
203310490Scy
204310490Scy	* newer versions of config.guess and config.sub
205310490Scy
206310490Scy	* minor fixes to buildall
207310490Scy
208310490Scy2011-05-19  Christos Zoulas <christos@zoulas.com>
209310490Scy
210310490Scy	* m4/macros/libtool.m4: for AIX AC_LANG_PROGRAM is incorrectly
211310490Scy	  used and the latest autoconf gives an error. For now just
212310490Scy	  quote it.
213310490Scy
214310490Scy	* configure.in: Fedora Core 15 and RedHat 6 now don't define
215310490Scy	  af_family_t in <linux/socket.h>, but in <bits/sockaddr.h>.
216310490Scy	  Include <sys/socket.h> so that we get <bits/sockaddr.h>
217310490Scy	  indirectly. This caused the <linux/nfs_mount.h> detection
218310490Scy	  test to fail.
219310490Scy
220310490Scy2010-11-24  Erez Zadok  <ezk@fsl.cs.sunysb.edu>
221310490Scy
222310490Scy	* m4/macros/os_cflags.m4: for linux, define _GNU_SOURCE (to get
223310490Scy	definitions for O_LARGEFILE and more).
224310490Scy
225310490Scy2010-11-20  Christos Zoulas <christos@zoulas.com>
226310490Scy
227310490Scy	* Update news items, add release readme, mark as rc1
228310490Scy
229310490Scy	* Fix addopts code to work with options that are key=value
230310490Scy	  when the built-in hasmntopt() code is not used. The problem
231310490Scy	  was that the code passed "key=" to hasmntopt not "key".
232310490Scy
233310490Scy2009-12-10  Christos Zoulas <christos@zoulas.com>
234310490Scy
235310490Scy	* Copy all fields of the am_opts structure
236310490Scy	  When we introduced am_loc we also added a function to
237310490Scy	  create a duplicate of an am_opts structure. As it turns
238310490Scy	  out, that only made a partial copy of the struct and some
239310490Scy	  fields (e.g. opt_cache) was left blank in the new structure.
240310490Scy	  Unfortunately any code that was checking the options
241310490Scy	  through the mntfs structure was mislead by the partial
242310490Scy	  copy: caching was disabled completely, for example, and
243310490Scy	  since browsing relies on caching being enabled it wasn't
244310490Scy	  working either.
245310490Scy	  From: Krisztian Kovacs <Kris.Kovacs@morganstanley.com>
246310490Scy
247310490Scy	* Initialize RPC authentication flavor to AUTH_UNIX instead
248310490Scy	  of zero. RHEL 5 uses version 6 of the mount_arg structure
249310490Scy	  that includes the desired RPC authorization flavour.
250310490Scy	  Unfortunately amd initializes that value to zero, meaning
251310490Scy	  AUTH_NULL, resulting in all NFS servers denying operations.
252310490Scy	  From: Krisztian Kovacs <Kris.Kovacs@morganstanley.com>
253310490Scy
254310490Scy	* Make sure to remove nodes in the proper order when going
255310490Scy	  down. Depending on what order the nodes got created it's
256310490Scy	  possible that the parent of a node has a bigger am_mapno
257310490Scy	  (index in exported_ap[]) so that it gets freed before
258310490Scy	  its child while the child's am_parent pointer is still
259310490Scy	  pointing to the already freed block of memory.
260310490Scy	  This change makes sure that umount_exported() cleans up
261310490Scy	  all children of a node first before freeing the node.
262310490Scy	  From: Krisztian Kovacs <Kris.Kovacs@morganstanley.com>
263310490Scy
264310490Scy	* Fix Linux-specific stuff in ops_tmpfs.c
265310490Scy	  AUTOFS_TMPFS_FS_FLAGS is defined only in the Linux-specific
266310490Scy	  conf_linux.c file, so it cannot be built on Solaris.
267310490Scy	  From: Krisztian Kovacs <Kris.Kovacs@morganstanley.com>
268310490Scy
269310490Scy        * Add missing parenthesis to fix defined(XXX
270310490Scy	  From: Krisztian Kovacs <Kris.Kovacs@morganstanley.com>
271310490Scy
272310490Scy	* In the previous commit we've already made a change that
273310490Scy	  makes this code unnecessary since the node is returned
274310490Scy	  even if the backing file server is known to be down.
275310490Scy	  Since the code path is unused it should be removed.
276310490Scy	  From: Krisztian Kovacs <Kris.Kovacs@morganstanley.com>
277310490Scy
278310490Scy	* amfs_generic_lookup_child() tries to find an alternate
279310490Scy	  file server if it detects that the current one is down.
280310490Scy	  However, in the comparison used to decide if a possible
281310490Scy	  mount is the same as the current one it compares the am_loc
282310490Scy	  pointers instead of the actual mntfs pointers. Since
283310490Scy	  amfs_lookup_one_location() creates a brand new am_loc
284310490Scy	  structure for the returned mntfs structure the am_loc
285310490Scy	  pointer will be different even if the mntfs it's pointing
286310490Scy	  to is the same.
287310490Scy	  This tricks amfs_generic_lookup_child() think it has
288310490Scy	  found an alternate file server while it hasn't and thus
289310490Scy	  starts multiple racing mounts for the very same node and
290310490Scy	  mntfs.
291310490Scy	  From: Krisztian Kovacs <Kris.Kovacs@morganstanley.com>
292310490Scy
293310490Scy	* In the new am_loc scheme mounted mntfs structures still
294310490Scy	  have their mf_fo structure left intact. So when restart
295310490Scy	  creates a fake mntfs for an already mounted filesystem it
296310490Scy	  should not free mf_fo right away.
297310490Scy	  From: Krisztian Kovacs <Kris.Kovacs@morganstanley.com>
298310490Scy
299310490Scy	* Setting the error flag of the mntfs for which the share
300310490Scy	  is already mounted results in the mount point not being
301310490Scy	  removed when it times out. (Amd considers it an error
302310490Scy	  mntfs and thus umount becomse a no-op.)
303310490Scy	  From: Krisztian Kovacs <Kris.Kovacs@morganstanley.com>
304310490Scy
305310490Scy	* Right now AMD sets all timeout values to their defaults
306310490Scy	  even if you explicitly set them to zero. This patch
307310490Scy	  introduces separate flags that store if the respective
308310490Scy	  values have been set and the code path setting default
309310490Scy	  values checks these flags instead of testing the values
310310490Scy	  for zero. [Linux only]
311310490Scy	  From: Krisztian Kovacs <Kris.Kovacs@morganstanley.com>
312310490Scy
313310490Scy	* Fix mntfs related lookup/(un)mount race conditions, by
314310490Scy	  introducing a new structure linking an mntfs to a node.
315310490Scy	  From: Krisztian Kovacs <Kris.Kovacs@morganstanley.com>
316310490Scy
317310490Scy	* We have to free the buffers allocated by the XDR routines when
318310490Scy	  decoding the mount response after copying them to their final place.
319310490Scy	  From: Krisztian Kovacs <Kris.Kovacs@morganstanley.com>
320310490Scy
321310490Scy2009-12-09  Christos Zoulas <christos@zoulas.com>
322310490Scy
323310490Scy	* Free continuation in amfs_retry() if we don't call amfs_bgmount()
324310490Scy	  Normally it's amfs_bgmount() which frees the continuation. However, if
325310490Scy	  the mount is already in progress and we're in amfs_retry() for another
326310490Scy	  node we don't try mounting the filesystem once again. Still, we have
327310490Scy	  to free the continuation as we won't get called again and thus would
328310490Scy	  leak the continuation structure and our am_loc references.
329310490Scy	  From: Krisztian Kovacs <Kris.Kovacs@morganstanley.com>
330310490Scy
331310490Scy	* Fix use-after-free and double free of mntfs private data
332310490Scy	  ops_nfs.c(nfs_init) does not clear private data pointer after free().
333310490Scy	  This leads to use-after-free and double free in case mount() fails.
334310490Scy	  (found by valgrind)
335310490Scy	  From: Krisztian Kovacs <Kris.Kovacs@morganstanley.com>
336310490Scy
337310490Scy2009-11-23  Christos Zoulas <christos@zoulas.com>
338310490Scy
339310490Scy	* The temporary filename buffer was leaked in lock_mtab().
340310490Scy	  From: Krisztian Kovacs <Kris.Kovacs@morganstanley.com>
341310490Scy
342310490Scy2009-10-27  Christos Zoulas <christos@zoulas.com>
343310490Scy
344310490Scy	* Deal with errno.h->sys/errno.h better
345310490Scy
346310490Scy2009-10-26  Christos Zoulas <christos@zoulas.com>
347310490Scy
348310490Scy	* Fix issue with autoconf 2.63
349310490Scy
350310490Scy	* Fix compile warnings for gcc-4.4.x
351310490Scy
352310490Scy2009-04-15  Christos Zoulas <christos@zoulas.com>
353310490Scy
354310490Scy	* Share the LDAP connection between different maps to save resources
355310490Scy	  on the LDAP server. (Olaf Flebbe <o.flebbe@science-computing.de>)
356310490Scy
357310490Scy2009-03-20  Christos Zoulas <christos@zoulas.com>
358310490Scy
359310490Scy	* Fix largefile re-definitions
360310490Scy
361310490Scy	* Fix compilation error caused in previous patch
362310490Scy
363310490Scy2009-02-19  Christos Zoulas <christos@zoulas.com>
364310490Scy
365310490Scy	* Add a synchronous unmount amq rpc that will wait for the remote
366310490Scy	  filesystem to be unmounted, or return an error. Enabled by amq -uu
367310490Scy
368310490Scy2009-01-11  Erez Zadok  <ezk@fsl.cs.sunysb.edu>
369310490Scy
370310490Scy	* amd/ops_udf.c: don't define functions/variables which may not be
371310490Scy	used.
372310490Scy
373310490Scy	* amd/ops_tmpfs.c (mount_tmpfs): force gcc not to complain about
374310490Scy	unused variables.
375310490Scy
376310490Scy	* config.guess.long: properly support Fedora Core.
377310490Scy
378310490Scy2009-01-09  Christos Zoulas <christos@zoulas.com>
379310490Scy
380310490Scy	* Fix nfs mounts on linux 2.6.26 by explicitly initializing context.
381310490Scy
382310490Scy	* Treat an empty sublink as an unset sublink; this allows us to
383310490Scy	  say sublink:=; in a spec to override the default. (This produces
384310490Scy	  Bad selector error, but it works. XXX: We need to decide how to
385310490Scy	  unset a selector. I proposed an unset keyword a while ago).
386310490Scy
387310490Scy2009-01-06  Christos Zoulas <christos@zoulas.com>
388310490Scy
389310490Scy	* re-renerate all generated files with newer versions of the
390310490Scy	  auto-tools.
391310490Scy
392310490Scy	* move INSTALL to INSTALL.am-utils to avoid conflicts
393310490Scy
394310490Scy	* fix incompatibilities with new m4 and new autoconf.
395310490Scy
396310490Scy	* add UDF filesystem support.
397310490Scy
398310490Scy	* fix NetBSD nfs file handle detection.
399310490Scy	
400310490Scy2009-01-02  Christos Zoulas <christos@zoulas.com>
401310490Scy
402310490Scy	* add nocasetrans, nojoliet, rrcaseins for cd9660 filesystems
403310490Scy
404310490Scy2008-12-03  Christos Zoulas <christos@zoulas.com>
405310490Scy
406310490Scy	* allow ldap queries try a comma-separated list of servers given as:
407310490Scy
408310490Scy		ldap_hostports = host1:port1,host2,host3:port3
409310490Scy
410310490Scy	  original patch from Florian Geyer
411310490Scy
412310490Scy2008-09-19  Christos Zoulas <christos@zoulas.com>
413310490Scy
414310490Scy	* the auth_create gid on NetBSD is int
415310490Scy
416310490Scy	* deal with lossage from flex -P
417310490Scy
418310490Scy	* fix missing/incorrect prototypes
419310490Scy
420310490Scy2008-09-17  Christos Zoulas <christos@zoulas.com>
421310490Scy
422310490Scy	* fix manual page section issues (sorting, non-existant)
423310490Scy
424310490Scy	* add missing forward declarations
425310490Scy
426310490Scy	* avoid null pointer derefs (coverity)
427310490Scy
428310490Scy	* more portable endian detection support
429310490Scy
430310490Scy	* implement tmpfs support
431310490Scy
432310490Scy	* use sizeof var instead of constant
433310490Scy
434310490Scy	* fix yyerror declaration and definition
435310490Scy
436310490Scy	* fix yy function renaming, and correct some renaming issues.
437310490Scy
438310490Scy	* work around automake < 1.9 issue where ylwrap is not being run
439310490Scy	  for a single yacc or lex file.
440310490Scy
441310490Scy	* NetBSD
442310490Scy	  - handle headers that need other headers to compile
443310490Scy	  - add exfs and tmpfs specific glue
444310490Scy	  - add options log, noatime, nocoredump, nodevmtime, softdep,
445310490Scy	    symperm, union
446310490Scy	  - NetBSD's new mount system call needs the size of the opaque
447310490Scy	    filesystem specific structure, but passing 0 for now works.
448310490Scy	    We would need to change a lot more code to pass the size from
449310490Scy	    the fs-specific calls, so for now punt.
450310490Scy	  - recvfrom takes socklen_t * on NetBSD
451310490Scy	  - handle newer NetBSD using statvfs
452310490Scy	  - NetBSD calls its ufs ffs
453310490Scy
454310490Scy	* Linux
455310490Scy	  - Most recent kernels have trouble with trying to parse the pid
456310490Scy	    hostname and do locking. What before was a silent failure, now
457310490Scy	    there is a warning printed and the mount is rejected. This is
458310490Scy	    the simplest fix:
459310490Scy	    (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=479884)
460310490Scy
461310490Scy2007-04-13  Erez Zadok  <ezk@cs.sunysb.edu>
462310490Scy
463310490Scy	* amd/sun_map.c (sun_append_str): When translating '&' from Sun
464310490Scy	automounter maps, replace it with "${key}" in the Amd map, not
465310490Scy	with the value of the key at the time.  This way '*' maps work
466310490Scy	too.
467310490Scy
468310490Scy	* config.guess.long: don't use -q option to grep because some
469310490Scy	systems don't support it.  Bug fix for solaris.
470310490Scy
471310490Scy2007-03-11  Christos Zoulas  <christos@zoulas.com>
472310490Scy
473310490Scy	* amd/opts.c (expand_op): Don't call xstrlcpy() to truncate a
474310490Scy	string.  It causes spurious xstrlcpy() syslog() errors.  Use
475310490Scy	memcpy() and explicitly terminate the string.
476310490Scy
477310490Scy2007-01-20  Erez Zadok  <ezk@cs.sunysb.edu>
478310490Scy
479310490Scy	* updated copyright year to 2007 on all files.
480310490Scy
481310490Scy2006-12-27  Erez Zadok  <ezk@cs.sunysb.edu>
482310490Scy
483310490Scy	* minor new port: ia64-hp-hpux11.23
484310490Scy
485310490Scy	* m4/macros/check_libwrap_severity.m4 (LIBS): also test if caller
486310490Scy	needs to define rfc931_timeout.
487310490Scy
488310490Scy	* amd/sun2amd.c: define rfc931_timeout and allow/deny_severity for
489310490Scy	libwrap.
490310490Scy
491310490Scy	* amd/amq_svc.c: some versions of libwrap require the caller to
492310490Scy	define rfc931_timeout in addition to allow/deny_severity.
493310490Scy
494310490Scy	* amd/amfs_toplvl.c (amfs_toplvl_init): properly detect when
495310490Scy	forced unmount functionality exists for all systems.
496310490Scy
497310490Scy	* libamu/mount_fs.c (compute_nfs_args): reset nfs_args_t->pathconf
498310490Scy	only if field exists.
499310490Scy
500310490Scy	* conf/nfs_prot/nfs_prot_hpux11.h: prevent HPUX 11.23 from
501310490Scy	including <tiuser> or <sys/tiuser> (TLI definitions are already
502310490Scy	included from elsewhere).
503310490Scy
504310490Scy	* configure.in: detect nfs_args_t->pathconf field.
505310490Scy
506310490Scy2006-11-27  Erez Zadok  <ezk@cs.sunysb.edu>
507310490Scy
508310490Scy	* doc/Makefile.am: properly publish html files using newer
509310490Scy	text2html.
510310490Scy
511310490Scy2006-11-27  Erez Zadok  <ezk@shekel.local>
512310490Scy
513310490Scy        * doc/Makefile.am: obfuscate emails in ChangeLog before it is
514310490Scy        published on web site.
515310490Scy
516310490Scy	* obfuscate many more emails in the distro, esp. of files which get
517310490Scy        posted on the am-utils web site.
518310490Scy
519310490Scy2006-11-26  Erez Zadok  <ezk@shekel.local>
520310490Scy
521310490Scy	* minor new port: i386-apple-darwin8.8.1.
522310490Scy
523310490Scy        * doc/am-utils.texi: remove obvious URLs used by spammers, and
524310490Scy        replace them with links to the am-utils web site, which uses PNG
525310490Scy        images to obfuscate the actual email/mailman URLs.
526310490Scy
527310490Scy2006-10-30  Erez Zadok  <ezk@cs.sunysb.edu>
528310490Scy
529310490Scy	* doc/am-utils.texi (Password maps): minor typo reported by
530310490Scy	Christoph P. Kukulies.
531310490Scy
532310490Scy2006-10-26  Erez Zadok  <ezk@cs.sunysb.edu>
533310490Scy
534310490Scy	* minor new port: i386-pc-linux-fc6.
535310490Scy
536310490Scy	* m4/macros/linux_headers.m4: handle newer Linux kernels which
537310490Scy	removed UTS_RELEASE from <linux/version.h>.
538310490Scy
539310490Scy2006-10-25  Erez Zadok  <ezk@cs.sunysb.edu>
540310490Scy
541310490Scy	* minor new ports: i386-pc-linux-centos4.4 and
542310490Scy	powerpc-apple-darwin8.7.0.
543310490Scy
544310490Scy	* config.guess.long: recognize CentOS Linux.
545310490Scy
546310490Scy2006-06-20  Erez Zadok  <ezk@cs.sunysb.edu>
547310490Scy
548310490Scy	* minor new port: i386-pc-solaris2.11-nexentaos (GNU/OpenSolaris).
549310490Scy
550310490Scy	* config.guess.long: recognize NexentaOS (GNU/OpenSolaris)
551310490Scy
552310490Scy	* config.guess, config.sub: updates from latest official GNU
553310490Scy	distributions.
554310490Scy
555310490Scy2006-05-11  Erez Zadok  <ezk@cs.sunysb.edu>
556310490Scy
557310490Scy	* Minor new ports: i386-unknown-freebsd6.1 (RELEASE),
558174294Sobrien	powerpc-apple-darwin8.6.0, and i386-unknown-openbsd3.9.
559131702Smbr
560310490Scy2006-05-10  Erez Zadok  <ezk@cs.sunysb.edu>
561310490Scy
562174294Sobrien	* libamu/mount_fs.c (compute_nfs_attrcache_flags): fix signedness
563174294Sobrien	problems on IRIX-6.5.
564131702Smbr
565174294Sobrien	* conf/autofs/autofs_solaris_v1.c (xdr_umntrequest): fix
566174294Sobrien	signedness problems on IRIX-6.5.
567131702Smbr
568174294Sobrien2006-05-01  Erez Zadok  <ezk@cs.sunysb.edu>
569131702Smbr
570174294Sobrien	* configure.in: check if libc already includes dbm functionality
571174294Sobrien	(as in FreeBSD 6), then don't bother to check specific libraries
572174294Sobrien	such as libdbm, gdbm, etc.
573131702Smbr
574174294Sobrien2006-04-21  Erez Zadok  <ezk@cs.sunysb.edu>
575131702Smbr
576174294Sobrien	* configure.in: detect G/DBM support via gdbm_compat library
577174294Sobrien	(Debian 3.1).
578174294Sobrien
579174294Sobrien	* minor new port: powerpc-apple-darwin8.5.0
580174294Sobrien
581174294Sobrien2006-04-20  Erez Zadok  <ezk@cs.sunysb.edu>
582174294Sobrien
583174294Sobrien	* scripts/amd.conf-sample, scripts/amd.conf.5, doc/am-utils.texi,
584174294Sobrien	NEWS: document new nfs_allow_any_interface parameter.
585174294Sobrien
586174294Sobrien	* include/am_compat.h (INADDR_LOOPBACK): define INADDR_LOOPBACK if
587174294Sobrien	not defined, since some systems don't have it.
588174294Sobrien
589174294Sobrien2006-04-20  Nick Williams <Nick.Williams@morganstanley.com>
590174294Sobrien
591174294Sobrien	* libamu/wire.c (is_interface_local): new boolena function to
592174294Sobrien	determine if address represents any of the local interfaces.
593174294Sobrien	(getwire): more properly check if address equals INADDR_LOOPBACK,
594174294Sobrien	not if IFF_LOOPBACK is not (the latter isn't as correct).
595174294Sobrien
596174294Sobrien	* include/am_utils.h: extern for new is_interface_local() function.
597174294Sobrien
598174294Sobrien	* conf/transp/transp_{sockets,tli}.c: don't define INADDR_LOOPBACK
599174294Sobrien	here but in am_compat.h
600174294Sobrien
601174294Sobrien	* amd/nfs_prot_svc.c (nfs_program_2): if
602174294Sobrien	nfs_allow_any_interface=yes, then allow NFS packets from any local
603174294Sobrien	interface (not just 127.0.0.1).
604174294Sobrien
605174294Sobrien	* amd/conf.c (gopt_nfs_allow_any_interface): implement the new
606174294Sobrien	amd.conf parameter nfs_allow_any_interface.
607174294Sobrien
608174294Sobrien	* amd/amd.h (CFM_NFS_ANY_INTERFACE): define new global flag when
609174294Sobrien	al interfaces are acceptable for local NFS packets.
610174294Sobrien
611174294Sobrien2006-04-18  Christos Zoulas  <christos@zoulas.com>
612174294Sobrien
613174294Sobrien	* amd/opts.c: Add support for optionally specifying the hostname
614174294Sobrien	to match against the netgroup in the netgrp and netgrpd selectors.
615174294Sobrien
616174294Sobrien2006-04-16  Erez Zadok  <ezk@cs.sunysb.edu>
617174294Sobrien
618174294Sobrien	* libamu/mtab.c (hasmntval): fix inverted meaning of error from
619174294Sobrien	hasmntvalerr().
620174294Sobrien
621174294Sobrien2006-04-14  Erez Zadok  <ezk@cs.sunysb.edu>
622174294Sobrien
623174294Sobrien	* libamu/mount_fs.c (compute_nfs_attrcache_flags): use new
624174294Sobrien	hasmntvalerr() function to set attribute cache values only if they
625174294Sobrien	were set (regardless whether they were set to zero or a non-zero
626174294Sobrien	value).  Before, we were unable to distinguish between an error to
627174294Sobrien	parse an option, and a user who actually wanted to set an
628174294Sobrien	attribute-cache value to 0.  This now fixes an important
629174294Sobrien	performance bug that Amd was turning off the attribute caches even
630174294Sobrien	for regular (non-automounter) NFS mounts.
631174294Sobrien
632174294Sobrien	* libamu/mtab.c (hasmntvalerr): new function to set the value of
633174294Sobrien	an option into an integer, but ONLY if that options was set and
634174294Sobrien	parsed correctly.  This function returns 1 on error, 0 on success
635174294Sobrien	(instead of always setting the option value to 0).
636174294Sobrien	(hasmntval): wrapper function around hasmntvalerr, which maintains
637174294Sobrien	backwards compatibility (always sets option value to 0, even on
638174294Sobrien	error to parse the option).
639174294Sobrien
640174294Sobrien	* amd/nfs_subr.c (fh_to_mp3): use long int printf format for
641174294Sobrien	fhh_pid.
642174294Sobrien
643174294Sobrien2006-04-05  Christos Zoulas  <christos@zoulas.com>
644174294Sobrien
645174294Sobrien	* amd/amfs_generic.c (amfs_lookup_mntfs): fix use-after-free bug
646174294Sobrien	(Coverity).
647174294Sobrien
648174294Sobrien2006-03-27  Erez Zadok  <ezk@cs.sunysb.edu>
649174294Sobrien
650174294Sobrien	* doc/am-utils.texi, scripts/{amd.conf.5,amd.conf-sample}:
651174294Sobrien	document new nfs_retransmit_counter_toplvl and
652174294Sobrien	nfs_retry_interval_toplvl global amd.conf parameters.
653174294Sobrien
654174294Sobrien	* amd/conf.c (gopt_nfs_retransmit_counter_toplvl,
655174294Sobrien	(gopt_nfs_retry_interval_toplvl): parse amd.conf
656174294Sobrien	nfs_retransmit_counter_toplvl and nfs_retry_interval_toplvl global
657174294Sobrien	parameters.
658174294Sobrien
659174294Sobrien	* amd/amfs_toplvl.c (amfs_toplvl_mount): support setting toplvl
660174294Sobrien	timeo/retrans parameters for Amd's toplvl mounts, separately from
661174294Sobrien	all other UDP or NFS mounts.
662174294Sobrien
663174294Sobrien	* amd/amd.h: define a new timeo/retrans parameter for toplvl
664174294Sobrien	mounts.
665174294Sobrien
666174294Sobrien2006-03-22  Erez Zadok  <ezk@cs.sunysb.edu>
667174294Sobrien
668174294Sobrien	* minor new port: i386-pc-linux-suse10.1 (beta 8).
669174294Sobrien
670174294Sobrien2006-03-21  Christos Zoulas  <christos@zoulas.com>
671174294Sobrien
672174294Sobrien	* amd/am_ops.c (merge_opts): Remove useless check found by
673174294Sobrien	Coverity; xmalloc never returns NULL.
674174294Sobrien
675174294Sobrien2006-03-21  Erez Zadok  <ezk@cs.sunysb.edu>
676174294Sobrien
677174294Sobrien	* minor new ports: i386-pc-linux-fc5.
678174294Sobrien
679174294Sobrien	* amd/info_ldap.c: as of Linux Fedora Core 5 (which comes with
680174294Sobrien	openldap-2.3.9), the ldap.h headers deprecate several functions
681174294Sobrien	used in this file, such as ldap_unbind.  You get compile errors
682174294Sobrien	about missing extern definitions.  Those externs are still in
683174294Sobrien	<ldap.h>, but surrounded by an ifdef LDAP_DEPRECATED.  I am
684174294Sobrien	turning on that ifdef at the top of info_ldap.c, under the
685174294Sobrien	assumption that the functions may be deprecated, but they still
686174294Sobrien	work for this (older?) version of the LDAP API.  It gets am-utils
687174294Sobrien	to compile, but it is not clear if it will work perfectly.
688174294Sobrien
689174294Sobrien	* libamu/xdr_func.c (xdr_am_mountres3_ok), amq/amq_xdr.c
690174294Sobrien	(xdr_amq_mount_tree, xdr_amq_mount_tree_p,
691174294Sobrien	xdr_amq_mount_info_list, xdr_amq_mount_tree_list), amq/amq.c
692174294Sobrien	(show_mti), amd/amq_subr.c (xdr_amq_setopt, xdr_amq_mount_subtree,
693174294Sobrien	xdr_amq_mount_tree, xdr_amq_mount_tree_list, xdr_amq_mount_tree),
694174294Sobrien	libamu/xdr_func.c (xdr_am_mountres3_ok): use casing magic to stop
695174294Sobrien	GCC-4.1 from complaining about "dereferencing type-punned pointer
696174294Sobrien	will break strict-aliasing rules" here (but not elsewhere).
697174294Sobrien
698174294Sobrien2006-03-20  Christos Zoulas  <christos@zoulas.com>
699174294Sobrien
700174294Sobrien	* libamu/wire.c: avoid potential dereferencing of a NULL pointer
701174294Sobrien	(Coverity).
702174294Sobrien
703174294Sobrien	* hlfsd/homedir.c (delay): remove unnecessary check for NULL
704174294Sobrien	pointer (Coverity).
705174294Sobrien
706174294Sobrien	* fsinfo/fsi_analyze.c (analyze_dkmounts, analyze_mounts,
707174294Sobrien	analyze_mounts): avoid potential dereferencing of a NULL pointer
708174294Sobrien	(Coverity).
709174294Sobrien
710174294Sobrien	* conf/transp/transp_sockets.c (create_amq_service): avoid
711174294Sobrien	potential dereferencing of a NULL pointer (Coverity).
712174294Sobrien
713174294Sobrien	* amd/sched.c (sigchld): properly check for the end of the waiting
714174294Sobrien	process list (Coverity).
715174294Sobrien
716174294Sobrien	* amd/mapc.c (mapc_create): initialize 'modify' to zero (Coverity).
717174294Sobrien
718174294Sobrien	* amd/autil.c (amfs_mkcacheref, am_unmounted): avoid potential
719174294Sobrien	dereferencing of a NULL pointer (Coverity).
720174294Sobrien
721174294Sobrien	* amd/amfs_generic.c (amfs_lookup_mntfs): free def_opts before
722174294Sobrien	reusing it (memory leak bug detected by Coverity).
723174294Sobrien	(amfs_bgmount): avoid potential dereferencing of a NULL pointer
724174294Sobrien	(Coverity).
725174294Sobrien
726174294Sobrien	* amd/am_ops.c (merge_opts): no need to check if newstr is NULL
727174294Sobrien	(bug detected by Coverity).
728174294Sobrien
729174294Sobrien2006-03-08  Ion Badulescu  <ionut@moisil.badula.org>
730174294Sobrien
731174294Sobrien	* amd/nfs_subr.c (mp_to_fh): fixed old-style filehandles--the pid
732174294Sobrien	comparison was failing.
733174294Sobrien
734174294Sobrien2006-03-08  Erez Zadok  <ezk@cs.sunysb.edu>
735174294Sobrien
736174294Sobrien	* configure.in: properly test for either <gdbm/ndbm.h> or
737174294Sobrien	<gdbm-ndbm.h> (unfortunately, Autoconf will map both names to the
738174294Sobrien	same $ac_cv_* variable name).  Some systems support one header or
739174294Sobrien	another.  Patch inspired by work Debian did.
740174294Sobrien
741310490Scy2006-02-16  Daniel P. Ottavio  <ottavio@vm.fsl.cs.sunysb.edu>
742174294Sobrien
743310490Scy	* amd/sum_map_tok.l: Fixed a bug in a regular expression that
744310490Scy	prevented dashes in hostnames.  This was posted in BZ by Thomas
745310490Scy	A. Fine.
746174294Sobrien
747310490Scy	* README.sun2amd: Fixed a typo.  Sentence mentions use of autofs
748310490Scy	type when it should be host type.
749310490Scy
750174294Sobrien2006-01-04  Erez Zadok  <ezk@cs.sunysb.edu>
751174294Sobrien
752174294Sobrien	* doc/am-utils.texi (auto_attrcache Parameter): revise discussion
753174294Sobrien	to mention pros and cons of turning on/off this parameter,
754174294Sobrien	including impact on Amd's performance, and ways to improve
755174294Sobrien	performance while minimizing the window of vulnerability in which
756174294Sobrien	kernel may return the wrong (cached) attributes.
757174294Sobrien
758174294Sobrien2006-01-02  Erez Zadok  <ezk@cs.sunysb.edu>
759174294Sobrien
760174294Sobrien	* updated copyright year to 2006 on all files.
761174294Sobrien
762174294Sobrien2005-12-20  Erez Zadok  <ezk@cs.sunysb.edu>
763174294Sobrien
764174294Sobrien	* include/am_utils.h, conf/transp/transp_tli.c (amu_svc_register,
765174294Sobrien	register_autofs_service): use a consistent prototype for the
766174294Sobrien	dispatch function of the autofs service de/registration functions.
767174294Sobrien
768174294Sobrien2005-12-03  Erez Zadok  <ezk@cs.sunysb.edu>
769174294Sobrien
770174294Sobrien	* minor new ports: i386-unknown-netbsdelf2.1,
771174294Sobrien	i386-unknown-netbsdelf3.0 (RELEASE), and i386-unknown-openbsd3.8.
772174294Sobrien
773174294Sobrien2005-12-02  Erez Zadok  <ezk@cs.sunysb.edu>
774174294Sobrien
775174294Sobrien	* m4/macros/check_field.m4: remove double inclusion of msdosfs
776174294Sobrien	headers, which are included in mount_header1.h (netbsd 2.1 doesn't
777174294Sobrien	protect <msdosfs/msdosfsmount.h> which causes compile errors).
778174294Sobrien
779174294Sobrien2005-11-08  Erez Zadok  <ezk@cs.sunysb.edu>
780174294Sobrien
781174294Sobrien	* minor new port: i386-unknown-freebsd6.0 (RELEASE)
782174294Sobrien
783174294Sobrien2005-10-26  Erez Zadok  <ezk@cs.sunysb.edu>
784174294Sobrien
785174294Sobrien	* amd/amq_subr.c (amqproc_pawd_1_svc): repeatedly resolve path in
786174294Sobrien	Amd, not in pawd (to avoid repeated network RPCs).
787174294Sobrien
788174294Sobrien	* amq/pawd.c (transform_dir): move repeated path resolution into Amd.
789174294Sobrien
790174294Sobrien2005-10-25  Erez Zadok  <ezk@cs.sunysb.edu>
791174294Sobrien
792174294Sobrien	* amq/pawd.c (transform_dir): resolve path repeatedly until
793174294Sobrien	finished.  Bug fix from Jonathan Chen <jon+amd-at-spock.org>.
794174294Sobrien	Added safety check to prevent infinite loops.
795174294Sobrien
796174294Sobrien2005-10-19  Erez Zadok  <ezk@cs.sunysb.edu>
797174294Sobrien
798174294Sobrien	* doc/am-utils.texi (opts Option): document new pcfs options
799174294Sobrien	longname, nowin95, shortname, user=N, group=N, mask=N, and
800174294Sobrien	dirmask=N.
801174294Sobrien
802174294Sobrien	* amd/ops_pcfs.c (mount_pcfs): process new pcfs options longname,
803174294Sobrien	nowin95, shortname, user=N, group=N, mask=N, and dirmask=N.
804174294Sobrien
805174294Sobrien	* include/am_compat.h: provide compatibility mnttab string names,
806174294Sobrien	if needed, for pcfs mount options longname, nowin95, shortname,
807174294Sobrien	user=N, group=N, mask=N, and dirmask=N.
808174294Sobrien
809174294Sobrien	* include/am_utils.h: extern for hasmntstr().
810174294Sobrien
811174294Sobrien	* libamu/mtab.c (hasmntstr): new function to return the string
812174294Sobrien	value following a mount option, up to the next comma-delimited
813174294Sobrien	options.
814174294Sobrien
815174294Sobrien	* configure.in: check for mnttab and pcfs options longname,
816174294Sobrien	nowin95, and shortname.
817174294Sobrien
818174294Sobrien	* Makefile.am (EXTRA_DIST_M4): distribute new macro
819174294Sobrien	check_mnt2_pcfs_opt.m4.
820174294Sobrien
821174294Sobrien	* m4/macros/check_mnt2_pcfs_opt.m4: new macro to check for pcfs
822174294Sobrien	mnttab and mount options.
823174294Sobrien
824174294Sobrien2005-10-18  Erez Zadok  <ezk@cs.sunysb.edu>
825174294Sobrien
826174294Sobrien	* libamu/mount_fs.c (print_nfs_args): print nfs_args->addr
827174294Sobrien	correctly, depending if it's a pointer or not.
828174294Sobrien
829174294Sobrien	* conf/sa_dref/sa_dref_*.h: for each NFS_SA_DREF macro, also
830174294Sobrien	#define NFS_ARGS_T_ADDR_IS_POINTER if nfs_args->addr is a pointer
831174294Sobrien	or an embedded structure, so we can tell how to print it.
832174294Sobrien
833174294Sobrien	* libamu/mount_fs.c (print_nfs_args): print nfs_args->addrlen
834174294Sobrien	field, if it exists.
835174294Sobrien
836174294Sobrien	* configure.in: check for nfs_args->addrlen field.
837174294Sobrien
838174294Sobrien	* wire-test/wire-test.c (main), libamu/mount_fs.c
839174294Sobrien	(print_nfs_args), fixmount/fixmount.c (inetresport,
840174294Sobrien	clnt_create_timeout), amq/pawd.c (transform_dir), amq/amq.c
841174294Sobrien	(main), amd/srvr_nfs.c (find_nfs_srvr), amd/autil.c
842174294Sobrien	(amfs_mount): document that as per POSIX, we don't need to set the
843174294Sobrien	sa_len/sin_len fields in struct sockaddr/sockaddr_in.  The field
844174294Sobrien	is used only internally in the kernel.  See
845174294Sobrien	www.awprofessional.com/articles/article.asp?p=169505&seqNum=2&rl=1
846174294Sobrien
847174294Sobrien	* fixmount/fixmount.c (inetresport): initialize sockaddr_in
848174294Sobrien	structure before filling in some fields.
849174294Sobrien
850174294Sobrien2005-10-11  Erez Zadok  <ezk@cs.sunysb.edu>
851174294Sobrien
852174294Sobrien	* doc/am-utils.texi (nfs_vers, nfs_proto parameters): clarify and
853174294Sobrien	correct mistaken description of nfs_proto.
854174294Sobrien
855174294Sobrien2005-10-10  Erez Zadok  <ezk@cs.sunysb.edu>
856174294Sobrien
857174294Sobrien	*******************************************************************
858310490Scy	*** Released am-utils-6.1a1					***
859174294Sobrien	*******************************************************************
860174294Sobrien
861310490Scy	* README.sun2amd: revised.
862310490Scy
863310490Scy2005-10-09  Daniel P. Ottavio  <dottavio@ic.sunysb.edu>
864310490Scy
865310490Scy	* amd/info_nis.c (nis_search): Bug fix for bugzilla #428; make
866310490Scy	sure that sun_entry2amd() is not called when yp_match() returns an
867310490Scy	error, this is done by checking that 'res' is 0.  Bug fix (same
868310490Scy	BZ#); free the output allocated by yp_match() instead of freeing
869310490Scy	the return value of sun_entry2amd().
870310490Scy
871310490Scy	* amd/sun_map.c (sun_entry2amd): Fix a comment.
872310490Scy
873310490Scy	* README.sun2amd: Made a first pass at describing the status of
874310490Scy	the sun2amd feature.
875310490Scy	Moved the date.
876310490Scy
877310490Scy2005-10-09  Erez Zadok  <ezk@cs.sunysb.edu>
878310490Scy
879310490Scy	* README.sun2amd: place holder.
880310490Scy
881310490Scy	* Makefile.am (EXTRA_DIST): distribute new README.sun2amd file.
882310490Scy
883174294Sobrien2005-10-07  Erez Zadok  <ezk@cs.sunysb.edu>
884174294Sobrien
885174294Sobrien	* m4/macros/check_mnttab_type.m4: move the test for MOUNT_* to the
886174294Sobrien	very end, after the test using getvfsbyname().
887174294Sobrien
888174294Sobrien	* m4/macros/expand_run_string.m4: if the string value returned is
889174294Sobrien	empty, consider it invalid.
890174294Sobrien
891174294Sobrien	* m4/macros/check_varargs_macros.m4: rewrite macro so it'll
892174294Sobrien	try and compile the varargs test, not just cpp it.  Some systems
893174294Sobrien	pass the old cpp test, but not when you actually try to compile
894174294Sobrien	the code (Tru64's cc).
895174294Sobrien
896174294Sobrien	* conf/autofs/autofs_solaris_v1.h: redefine
897174294Sobrien	autofs_strdup_space_hack as a macro to str3cat(NULL,(s)," ","").
898174294Sobrien	This works everywhere and we avoid linking problems, inline
899174294Sobrien	functions, etc.
900174294Sobrien
901174294Sobrien	* conf/autofs/autofs_solaris_v1.c (autofs_mount_fs): remove
902174294Sobrien	autofs_strdup_space_hack() function altogether.
903174294Sobrien
904174294Sobrien	* m4/macros/os_cflags.m4: remove hack that hardcodes pte_t=u_int.
905174294Sobrien
906174294Sobrien	* configure.in: test for <sys/immu.h> header.
907174294Sobrien	Test for pte_t, but only on IRIX6 systems.
908174294Sobrien
909174294Sobrien	* Makefile.am (EXTRA_DIST_M4): distribute new type_pte_t.m4 file.
910174294Sobrien
911174294Sobrien	* m4/macros/type_pte_t.m4: new test for existence of pte_t
912174294Sobrien	typedef, needed on some IRIX-6.5/gcc systems.
913174294Sobrien
914174294Sobrien	* m4/macros/header_templates.m4: add missing templates for
915174294Sobrien	HAVE_EXTERN_GETDTABLESIZE, HAVE_EXTERN_GETWD, and
916174294Sobrien	HAVE_EXTERN_UALARM.
917174294Sobrien
918174294Sobrien	* amd/info_exec.c (exec_map_open): break assignment from inside
919174294Sobrien	conditional, to work around an IRIX-6.5 cc bug.
920174294Sobrien
921310490Scy	* amd/Makefile.am (amd_LDADD, sun2amd_LDADD): put libaminfo.a
922310490Scy	before libamu.la.  Some linkers (e.g., IRIX-6.5) incorrectly
923310490Scy	complain about undefined symbols.
924310490Scy
925174294Sobrien	* fsinfo/fsi_util.c (set_ether_if), amd/map.c (unmount_mp),
926174294Sobrien	libamu/xutil.c (expand_error), libamu/strutil.c (xsnprintf): avoid
927174294Sobrien	comparison between signed and unsigned integers.
928174294Sobrien
929174294Sobrien	* conf/autofs/autofs_solaris_v1.h, conf/autofs/autofs_solaris_v1.c
930174294Sobrien	(autofs_strdup_space_hack): move "space_hack" function from static
931174294Sobrien	inline in header, into the only source file that needs it.  This
932174294Sobrien	is cleaner and also prevents linking problem with some compilers
933174294Sobrien	that won't apply CPP macros inside static inline functions (for
934174294Sobrien	the strl* functions).
935174294Sobrien
936174294Sobrien	* amq/pawd.c (find_mt, find_mlp): remove obsolete, inefficient
937174294Sobrien	code.
938174294Sobrien	(transform_dir): call the new, efficient amqproc_pawd_1() routine.
939174294Sobrien
940174294Sobrien	* amq/amq_clnt.c (amqproc_pawd_1): AMQPROC_PAWD wrapper routine.
941174294Sobrien
942174294Sobrien	* amq/amq.h (amqproc_pawd_1): extern for amq's AMQPROC_PAWD
943174294Sobrien	wrapper routine.
944174294Sobrien
945174294Sobrien	* amd/amq_svc.c (amq_program_1): dispatch point for
946174294Sobrien	amqproc_pawd_1_svc.
947174294Sobrien
948174294Sobrien	* amd/amq_subr.c (amqproc_pawd_1_svc): moved pawd's path-matching
949174294Sobrien	functionality into Amd, where it can be done a lot more
950174294Sobrien	efficiently.  We don't have to construct and ship a whole export
951174294Sobrien	tree from Amd to pawd.  We just get a variable-length
952174294Sobrien	xdr_wrapstring for the user's path, iterate over the entire export
953174294Sobrien	list inside Amd, and return only a matched string if found
954174294Sobrien	(otherwise we return "" to indicate that there was no match, and
955174294Sobrien	let pawd printf the same string it sent over).
956174294Sobrien
957174294Sobrien	* amd/amd.h: extern for amqproc_pawd_1_svc, amd's service routine
958174294Sobrien	the AMQPROC_PAWD RPC.
959174294Sobrien
960174294Sobrien2005-10-06  Erez Zadok  <ezk@cs.sunysb.edu>
961174294Sobrien
962174294Sobrien	* ltmain.sh, m4/macros/libtool.m4: update to libtool-1.5.20.
963174294Sobrien	Fixes Tru64 bugs when using ksh.
964174294Sobrien
965174294Sobrien	* amd/amfs_toplvl.c (amfs_toplvl_mount): break complex ifdef macro
966174294Sobrien	into two sections, to workaround a C99 varargs-macro bug in
967174294Sobrien	gcc-3.2.2 (RH9).
968174294Sobrien
969174294Sobrien	* libamu/wire.c (print_wires): convert argument-less xsnprintf to
970174294Sobrien	xstrlcpy.
971174294Sobrien
972174294Sobrien	* include/am_utils.h: use new HAVE_C99_VARARGS_MACROS or
973174294Sobrien	HAVE_GCC_VARARGS_MACROS to pass file name and line number to
974174294Sobrien	xsnprintf/xvsnprintf.
975174294Sobrien
976174294Sobrien	* libamu/strutil.c (xsnprintf, xvsnprintf): if debugging is on,
977174294Sobrien	then also print the source file name and line number that called
978174294Sobrien	xsnprintf/xvsnprintf with a buffer that wasn't large enough (most
979174294Sobrien	likely an am-utils bug).
980174294Sobrien
981174294Sobrien	* Makefile.am (EXTRA_DIST_M4): distribute new
982174294Sobrien	check_varargs_macros.m4 file.
983174294Sobrien
984174294Sobrien	* configure.in: execute new AMU_VARARGS_MACROS test.
985174294Sobrien
986174294Sobrien	* m4/macros/check_varargs_macros.m4: new test to check what style
987174294Sobrien	of variable-length argument macros, if any, does the
988174294Sobrien	compiler/pre-processor supports.
989174294Sobrien
990174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c (autofs_lookup_2_req)
991174294Sobrien	conf/autofs/autofs_solaris_v1.c (autofs_mount_1_req), amd/opts.c,
992174294Sobrien	amd/nfs_subr.c (nfsproc_lookup_2_svc), amd/nfs_start.c
993174294Sobrien	(mount_automounter), amd/get_args.c (get_args), amd/amfs_toplvl.c,
994174294Sobrien	amd/amfs_auto.c (amfs_auto_mount), amd/amd.h, amd/amd.c (main):
995174294Sobrien	use sizeof() instead of fixed SIZEOF_* macros.
996174294Sobrien
997174294Sobrien	* libamu/strutil.c (xstrlcat, xstrlcpy), include/am_utils.h
998174294Sobrien	(DEBUG): if debugging is on, then also print the source file name
999174294Sobrien	and line number that called xstrl* with a buffer that wasn't large
1000174294Sobrien	enough (most likely an am-utils bug)
1001174294Sobrien
1002174294Sobrien	* include/am_compat.h (INADDR_NONE): define in a common location,
1003174294Sobrien	if OS doesn't have it, use 0xffffffffU which should work with any
1004174294Sobrien	ANSI compiler.
1005174294Sobrien
1006174294Sobrien	* fixmount/fixmount.c, libamu/wire.c: remove local definition of
1007174294Sobrien	INADDR_NONE.
1008174294Sobrien
1009174294Sobrien	* amd/amfs_toplvl.c (amfs_toplvl_mount), amd/amfs_auto.c
1010174294Sobrien	(amfs_auto_mount): use common SIZEOF_OPTS in definition and call
1011174294Sobrien	to autofs_get_opts.
1012174294Sobrien
1013174294Sobrien	* amd/amd.h (SIZEOF_OPTS): moved #define to common header.
1014174294Sobrien
1015174294Sobrien2005-10-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1016174294Sobrien
1017174294Sobrien	* amd/opts.c (expand_op): Need to check BUFSPACE for env for
1018174294Sobrien	vlen+1.  Likewise for cp and strlen(cp)+1.
1019174294Sobrien
1020174294Sobrien	* amd/amfs_toplvl.c (amfs_toplvl_mount) [HAVE_FS_AUTOFS]: Pass new
1021174294Sobrien	size argument to autofs_get_opts.
1022174294Sobrien
1023174294Sobrien2005-10-05  Erez Zadok  <ezk@cs.sunysb.edu>
1024174294Sobrien
1025174294Sobrien	* amq/pawd.c (transform_dir): was using UDP only.  Now will also
1026174294Sobrien	try TCP if UDP failed.  Destroy client after use to avoid leftover
1027174294Sobrien	TCP sockets in the kernel.
1028174294Sobrien
1029174294Sobrien	* libamu/hasmntopt.c (amu_hasmntopt): increase size of MNTMAXSTR
1030174294Sobrien	from 128 to to 256, because some users have really long option
1031174294Sobrien	strings.  Suggestion from jon+amd-at-spock.org.
1032174294Sobrien
1033174294Sobrien	* amd/opts.c (expand_op): should check BUFSPACE for vlen+1, not
1034174294Sobrien	just vlen.  Bug discovered when started using xstrlcpy().
1035174294Sobrien
1036174294Sobrien	* ALL: convert from using strcat to the safer xstrlcat, and from
1037174294Sobrien	strcpy to safer xstrlcpy.
1038174294Sobrien
1039174294Sobrien2005-10-04  Erez Zadok  <ezk@cs.sunysb.edu>
1040174294Sobrien
1041174294Sobrien	* hlfsd/hlfsd.h: remove old fatalerror() and ERRM macros.
1042174294Sobrien
1043174294Sobrien	* hlfsd/hlfsd.c (fatalerror): new function instead of macro.
1044174294Sobrien	Easier to use xstrlcat in this new function.
1045174294Sobrien
1046174294Sobrien	* amd/amd.h, include/am_utils.h, amd/amd.c: moved 'hostd' extern
1047174294Sobrien	from am_utils.h to amd.h, and define its size as a macro that
1048174294Sobrien	could be passed to xstrl*().
1049174294Sobrien
1050174294Sobrien	* ALL: convert from using sprintf to the safer xsnprintf.
1051174294Sobrien
1052174294Sobrien	* mk-amd-map/Makefile.am (LDADD): link with libamu to get
1053174294Sobrien	xsnprintf().
1054174294Sobrien
1055174294Sobrien	* amd/amd.h, amd/amd.c, include/am_utils.h: moved pid_fsname
1056174294Sobrien	extern from am_utils.h to amd.h, and define its size as a macro
1057174294Sobrien	that could be passed to xsnprintf().
1058174294Sobrien
1059174294Sobrien2005-10-02  Erez Zadok  <ezk@cs.sunysb.edu>
1060174294Sobrien
1061174294Sobrien	* libamu/Makefile.am: use strutil.c, not util.c.
1062174294Sobrien
1063174294Sobrien	* libamu/strutil.c: rename from util.c to explain better purpose
1064310490Scy	of file.  Move xvsnprintf and xsnprintf from xutil.c to this file.
1065174294Sobrien
1066174294Sobrien	* libamu/xutil.c: explain purpose of file.  Move mkdirs/rmdirs
1067174294Sobrien	code from old util.c.
1068174294Sobrien
1069174294Sobrien2005-10-01  Erez Zadok  <ezk@cs.sunysb.edu>
1070174294Sobrien
1071174294Sobrien	* m4/macros/header_templates.m4: templates for FFS.
1072174294Sobrien
1073174294Sobrien	* m4/macros/check_mnttab_type.m4: on BSD44 systems, check for file
1074174294Sobrien	system mount table name via the MOUNT_* mount(2) macros (because
1075174294Sobrien	BSD44 keeps the mount table in the kernel).
1076174294Sobrien
1077174294Sobrien	* configure.in: synchronise order of searching for mnttab entries
1078174294Sobrien	and mount names.  The new order is "ext3 ext2 ffs ufs 4.2 4.3 4.4
1079174294Sobrien	efs xfs jfs ultrix" (which would prefer ffs on BSD44 instead of
1080174294Sobrien	ufs, and ext3 instead of ext2 on Linux).
1081174294Sobrien
1082174294Sobrien	* include/am_defs.h: include <sys/statvfs.h> if it exists.
1083174294Sobrien
1084174294Sobrien	* conf/nfs_prot/nfs_prot_netbsd1_4.h: NetBSD 3 has both statfs()
1085174294Sobrien	and statvfs(), but the latter is preferred, so #define to use
1086174294Sobrien	statvfs.
1087174294Sobrien
1088174294Sobrien	* configure.in: check for statfs(), statvfs(), and
1089174294Sobrien	<sys/statvfs.h>.
1090174294Sobrien
1091174294Sobrien	* config.guess.long: strip trailing '.' on "netbsdelf3.0."
1092174294Sobrien	(Beta).  Workaround for bug in config.guess.
1093174294Sobrien
1094174294Sobrien	* config.{guess,sub}: update to latest versions.
1095174294Sobrien
1096174294Sobrien2005-09-30  Christos Zoulas  <christos@zoulas.com>
1097174294Sobrien
1098174294Sobrien	* fsinfo/fsi_util.c (set_ether_if): use INADDR_NONE instead of
1099174294Sobrien	hard-coded value of -1.
1100174294Sobrien
1101174294Sobrien	* include/amq_defs.h (AMQ_STRLEN): increase default size from 2KB
1102174294Sobrien	to 16KB.  We can afford it these days.
1103174294Sobrien
1104174294Sobrien	* libamu/strcasecmp.c (strcasecmp): use unsigned chars in
1105174294Sobrien	tolower() to avoid sign/size promotion bugs.
1106174294Sobrien
1107174294Sobrien	* libamu/xutil.c (switch_to_logfile): don't output to LOG_CONS by
1108174294Sobrien	default (it's unfriendly).  If user really wants to, they can set
1109174294Sobrien	it in /etc/syslog.conf.
1110174294Sobrien
1111174294Sobrien2005-09-29  Erez Zadok  <ezk@cs.sunysb.edu>
1112174294Sobrien
1113174294Sobrien	* amq/pawd.c (find_mt): if the auto mount type is used, pawd could
1114174294Sobrien	go into an infinite loop since the mt_directory and mt_mountpoint
1115174294Sobrien	fields are the same for auto mounts.  Solution: ignore type auto
1116174294Sobrien	mounts, similar to toplvl.  Bug fix from Jonathan Chen
1117174294Sobrien	<jon+amd@spock.org>.
1118174294Sobrien
1119174294Sobrien	* README.attrcache: document test-attrcache script.
1120174294Sobrien
1121174294Sobrien	* scripts/Makefile.am (noinst_SCRIPTS): build test-attrcache
1122174294Sobrien	script.
1123174294Sobrien
1124174294Sobrien	* configure.in: build scripts/test-attrcache script and chmod it
1125174294Sobrien	so it can be executed in place.
1126174294Sobrien
1127174294Sobrien	* scripts/test-attrcache.in: script to test the NFS attribute
1128174294Sobrien	cache using Amd.
1129174294Sobrien
1130174294Sobrien2005-09-26  Erez Zadok  <ezk@cs.sunysb.edu>
1131174294Sobrien
1132174294Sobrien	* hlfsd/stubs.c (nfsproc_getattr_2_svc, nfsproc_lookup_2_svc,
1133174294Sobrien	nfsproc_readlink_2_svc, nfsproc_readdir_2_svc), hlfsd/hlfsd.c
1134174294Sobrien	(hlfsd_init): use new clocktime() function.
1135174294Sobrien
1136174294Sobrien2005-09-18  Erez Zadok  <ezk@cs.sunysb.edu>
1137174294Sobrien
1138310490Scy	* README.attrcache: document netbsd's patchs to support noac.
1139174294Sobrien
1140174294Sobrien	* libamu/mount_fs.c (compute_nfs_attrcache_flags): cleanup the
1141174294Sobrien	code that sets the ac{reg,dir}{min,max} fields so it also sets the
1142174294Sobrien	appropriate nfs_args->flags such as MNT2_NFS_OPT_ACREGMIN.
1143174294Sobrien
1144174294Sobrien	* configure.in: check for nfs_args fields acregmax and acdirmax.
1145174294Sobrien
1146174294Sobrien	* README.attrcache: new file documenting in detail OS bugs
1147174294Sobrien	relating to attribute caching, which can affect Amd's reliability
1148174294Sobrien	under heavy load.
1149310490Scy	Update status of freebsd and openbsd.
1150174294Sobrien
1151174294Sobrien	* doc/Makefile.am: install README.attrcache file as attrache.txt
1152174294Sobrien	file on am-utils Web site.
1153174294Sobrien
1154174294Sobrien	* Makefile.am (EXTRA_DIST): include README.attrcache in distro.
1155174294Sobrien
1156174294Sobrien	* BUGS, NEWS, doc/am-utils.texi (auto_attrcache Parameter),
1157174294Sobrien	scripts/amd.conf.5, scripts/amd.conf-sample: document attribute
1158174294Sobrien	cache bugs on some OSs.
1159174294Sobrien
1160174294Sobrien2005-09-17  Erez Zadok  <ezk@cs.sunysb.edu>
1161174294Sobrien
1162174294Sobrien	* libamu/xutil.c (clocktime): newly implemented routine.  Uses
1163174294Sobrien	gettimeofday() each time to return a high-resolution clock time,
1164174294Sobrien	and does not "cache" the last time.  Returns time in seconds, just
1165174294Sobrien	like the old implementation.  If passed a non-null argument, will
1166174294Sobrien	fill it in with the current time in seconds+microseconds.
1167174294Sobrien
1168174294Sobrien	* libamu/xutil.c: remove actual declaration of clock_valid, and
1169174294Sobrien	another never-used declaration for xclock_valid.
1170174294Sobrien
1171174294Sobrien	* include/am_utils.h: remove defunct definition of clocktime()
1172174294Sobrien	macro and clock_valid variable.  Add extern for new definition.
1173174294Sobrien
1174174294Sobrien	* libamu/mount_fs.c (mount_fs), hlfsd/homedir.c (homedir,
1175174294Sobrien	hlfsd_diskspace, hlfsd_getpwent, plt_reset, table_add),
1176174294Sobrien	hlfsd/hlfsd.c (main, hlfsd_init, reload, cleanup),
1177174294Sobrien	conf/mtab/mtab_mach3.c (open_locked_mtab), conf/mtab/mtab_file.c
1178174294Sobrien	(open_locked_mtab), amd/nfs_start.c (do_select, run_rpc),
1179174294Sobrien	amd/autil.c (host_normalize): remove defunct clock_valid.
1180174294Sobrien
1181174294Sobrien	* amd/nfs_subr.c (nfsproc_getattr_2_svc): Print microseconds for
1182174294Sobrien	node's mtime.
1183174294Sobrien	(fh_to_mp3): use new clocktime() to update mtime and get a better
1184174294Sobrien	time resolution.
1185174294Sobrien
1186174294Sobrien	* amd/mapc.c (mapc_reload_map): change prototype from returning
1187174294Sobrien	void to returning an int.  If reloading was needed and succeeded,
1188174294Sobrien	return 1; else return 0.
1189174294Sobrien	(mapc_sync): update mtime of parent node if needed.  This is a
1190174294Sobrien	CRITICAL FIX, to ensure that the kernel flushes its DNLC/dcache
1191174294Sobrien	when we run "amq -f" manually or when a map is reloaded.
1192174294Sobrien
1193174294Sobrien	* amd/map.c (new_ttl): update am_ttl and na_atime in one shot.
1194174294Sobrien	(init_map): use new clocktime().
1195174294Sobrien	(unmount_mp): if the OS doesn't support a "symttl" option, then
1196174294Sobrien	update the mtime of the parent node using the clocktime(); but if
1197174294Sobrien	the time hasn't gotten changed because of rapid Amd accesses on
1198174294Sobrien	systems that don't have a micro-second NFS-client resolution, then
1199174294Sobrien	increment mtime by one arbitrarily (this could, on some systems
1200174294Sobrien	and under pathological cases, result in mtime's that are in the
1201174294Sobrien	future).
1202174294Sobrien
1203174294Sobrien	* amd/autil.c (forcibly_timeout_mp): MAJOR BUG FIX: force mtime
1204174294Sobrien	update of parent dir, to prevent DNLC/dcache from caching the old
1205174294Sobrien	entry, which could result in ESTALE errors, bad symlinks, and
1206174294Sobrien	more.
1207174294Sobrien	(am_mounted): record mount time, and update am_stats at the same
1208174294Sobrien	time, using the double-action redone clocktime() routine.
1209174294Sobrien	(am_mounted): update parent's mtime from that of the child.
1210174294Sobrien	(am_unmounted): when unmounting an entry, update mtime of parent
1211174294Sobrien	node.
1212174294Sobrien
1213174294Sobrien	* amd/amfs_generic.c (amfs_bgmount): now that clocktime() doesn't
1214174294Sobrien	remember it's last non-zero value, save it in a temporary variable
1215174294Sobrien	to avoid a TOCTOU problem (between an "if" and a "dlog").
1216174294Sobrien
1217174294Sobrien	* libamu/xutil.c (show_time_host_and_name),
1218174294Sobrien	conf/autofs/autofs_linux.c (autofs_mounted, autofs_timeout_mp),
1219174294Sobrien	amd/srvr_nfs.c (nfs_keepalive_callback, nfs_keepalive_timeout)
1220174294Sobrien	(find_nfs_srvr), amd/rpc_fwd.c (fwd_alloc), amd/nfs_subr.c
1221174294Sobrien	(nfsproc_getattr_2_svc), amd/nfs_start.c (do_select, run_rpc),
1222174294Sobrien	amd/mapc.c (root_init), amd/map.c(map_flush_srvr, timeout_mp),
1223174294Sobrien	amd/info_ndbm.c (ndbm_init), amd/info_ldap.c (amu_ldap_rebind),
1224174294Sobrien	amd/info_file.c (file_open), amd/info_exec.c (fgets_timed,
1225174294Sobrien	exec_search), amd/clock.c (timeout, softclock), amd/autil.c
1226174294Sobrien	(forcibly_timeout_mp), amd/amfs_generic.c (amfs_retry,
1227174294Sobrien	amfs_bgmount, amfs_generic_mount_child), amd/amd.c (main): pass
1228174294Sobrien	NULL to clocktime().
1229174294Sobrien
1230310490Scy2005-09-15  Erez Zadok  <ezk@cs.sunysb.edu>
1231310490Scy
1232310490Scy	* amd/nfs_subr.c (nfsproc_getattr_2_svc): initialize 'retry', just
1233310490Scy	in case.
1234310490Scy	(fh_to_mp3): increment amd_stats.d_stale counter only if we are
1235310490Scy	actually returning ESTALE.
1236310490Scy
1237310490Scy	* amd/info_exec.c (exec_parse_qanswer), amd/info_file.c
1238310490Scy	(file_search_or_reload), amd/info_hesiod.c (hesiod_search),
1239310490Scy	amd/info_ldap.c (amu_ldap_search), amd/info_ndbm.c (search_ndbm),
1240310490Scy	amd/info_nis.c (nis_search), amd/info_nisplus.c (nisplus_search,
1241310490Scy	nisplus_search): don't dereference mnt_map->cfm which may be null
1242310490Scy	if we're not using an amd.conf file.
1243310490Scy
1244310490Scy2005-09-14  Erez Zadok  <ezk@cs.sunysb.edu>
1245310490Scy
1246310490Scy	* libamu/xutil.c (unregister_amq): if failed to de-register Amd
1247310490Scy	from portmapper, report it under dlog (debugging), not as an
1248310490Scy	annoying plog that always shows up.
1249310490Scy
1250310490Scy2005-09-13  Erez Zadok  <ezk@cs.sunysb.edu>
1251310490Scy
1252310490Scy	* mk-amd-map/mk-amd-map.c (read_file_file), libamu/util.c
1253310490Scy	(strsplit), libamu/hasmntopt.c (nextmntopt), amd/sun_map.c
1254310490Scy	(sun_entry2amd), amd/sun2amd.c (sun2amd_convert_convert),
1255310490Scy	amd/mapc.c (mapc_add_kv), amd/info_file.c (file_search_or_reload),
1256310490Scy	amd/info_exec.c (exec_parse_qanswer): cast isspace() and isascii()
1257310490Scy	arg to unsigned char, which is safer as per Christos.
1258310490Scy
1259310490Scy	* amd/sun_map.c (sun_entry2amd): isspace takes an int, not a char.
1260310490Scy
1261310490Scy	* configure.in: keep a dummy unused AM_PROG_LEX, because old
1262310490Scy	Automake (1.6.3) looks for it if you refer to LEX in your
1263310490Scy	Makefile.am files.  Silly thing, fixed in newer versions of
1264310490Scy	Automake (1.9.2).
1265310490Scy
1266310490Scy2005-09-11  Erez Zadok  <ezk@cs.sunysb.edu>
1267310490Scy
1268310490Scy	* Makefile.am (EXTRA_DIST_M4): add prog_{lex,yacc}.m4 to distro.
1269310490Scy
1270310490Scy	* configure.in: use new macros AMU_PROG_YACC and AMU_PROG_LEX.
1271310490Scy
1272310490Scy	* m4/macros/prog_yacc.m4: new macro to check if bison/yacc/byacc
1273310490Scy	exist, but exist with an error if none found.
1274310490Scy
1275310490Scy	* m4/macros/prog_lex.m4: new macro to check if f/lex exist, but
1276310490Scy	exit with an error if not found (am-utils requires f/lex).
1277310490Scy
1278174294Sobrien2005-09-07  Erez Zadok  <ezk@cs.sunysb.edu>
1279174294Sobrien
1280174294Sobrien	* minor new port: powerpc-apple-darwin8.2.0.
1281174294Sobrien
1282174294Sobrien	* m4/macros/type_auth_create_gidlist.m4: Old macosx used "gid_t"
1283174294Sobrien	but all newer ones (10.4+) use int.
1284174294Sobrien
1285174294Sobrien	* m4/macros/type_recvfrom_fromlen.m4: Old macosx used "int" for
1286174294Sobrien	6th arg of recvfrom(), but all newer ones (10.4+) use socklen_t.
1287174294Sobrien
1288174294Sobrien	* minor new port: i386-pc-linux-deb3.1.
1289174294Sobrien
1290174294Sobrien2005-09-02  Erez Zadok  <ezk@cs.sunysb.edu>
1291174294Sobrien
1292174294Sobrien	* conf/mount/mount_linux.c: If autoconf didn't find any disk-based
1293174294Sobrien	file system on this system (probably because /proc isn't mounted),
1294174294Sobrien	then provide some default definition for this file to compile.
1295174294Sobrien
1296310490Scy2005-08-28  Daniel P. Ottavio  <dottavio@ic.sunysb.edu>
1297310490Scy
1298310490Scy	* amd/sun_map.c (sun_entry2amd) : Wipe out any trailing white
1299310490Scy	spaces or '\n' before passing strings to the parser.
1300310490Scy
1301310490Scy	* amd/amd.h : oops, reverting bad changes
1302310490Scy
1303310490Scy	* amd/info_file.c : oops, reverting bad changes
1304310490Scy
1305310490Scy	* amd/mapc.c : oops, reverting bad changes
1306310490Scy
1307310490Scy	* amd/sun_map_parse.y : oops, reverting bad changes
1308310490Scy
1309174294Sobrien2005-08-27  Erez Zadok  <ezk@cs.sunysb.edu>
1310174294Sobrien
1311310490Scy	* libamu/xutil.c: amd_program_number is a u_long now.
1312310490Scy	(unregister_amq): if pmap_unset failed to de-register Amd from the
1313310490Scy	portmapper, print an error message.
1314310490Scy	(get_amd_program_number): returns a u_long now.
1315310490Scy	(set_amd_program_number): take a u_long now.
1316310490Scy
1317310490Scy	* include/am_utils.h: get_amd_program_number() returns u_long now.
1318310490Scy	set_amd_program_number() takes a u_long now.
1319310490Scy
1320310490Scy	* amq/amq.c: amd_program_number is a u_long, not int.
1321310490Scy
1322310490Scy	* amd/nfs_start.c (mount_automounter): when registering Amd with
1323310490Scy	the portmapper (for Amq service), don't fail if just one of TCP or
1324310490Scy	UDP failed to register, but only if both transports failed.  That
1325310490Scy	way Amq can still contact Amd using the transport that did
1326310490Scy	register correctly.  However, now, if both transports failed to
1327310490Scy	register, then set amd_state to "Done" so it would shutdown
1328310490Scy	cleanly.
1329310490Scy
1330310490Scy	* conf/transp/transp_{sockets,tli{}.c (amu_svc_register): better
1331310490Scy	comments.
1332310490Scy
1333310490Scy	* libamu/xutil.c: debug_flags should always be initialized to
1334310490Scy	D_CONTROL (amq,daemon,fork).
1335310490Scy	(debug_option): allow setting initial immutable debug_flags via
1336310490Scy	amd.conf; afterward, prevent it (i.e., one tries it via "amq -D").
1337310490Scy
1338174294Sobrien	* Makefile.am (DISTCLEANFILES): also remove amu_autofs_prot.h,
1339174294Sobrien	config.cache.old, and dbgcf.h on "make distclean".
1340174294Sobrien	(CLEANFILES): remove dbgcf on plain "make clean".
1341174294Sobrien
1342174294Sobrien	* amd/Makefile.am (DISTCLEANFILES): also remove ops_autofs.c on
1343174294Sobrien	"make distclean".
1344174294Sobrien
1345310490Scy2005-08-27  Daniel P. Ottavio  <dottavio@ic.sunysb.edu>
1346310490Scy
1347310490Scy	* amd/info_file.c (file_search_or_reload): Changed the key
1348310490Scy	variable that is passed to the sun_entry2amd.
1349310490Scy
1350310490Scy	* amd/mapc.c (mapc_add_kv): Add support for multiple entries
1351310490Scy	packed into one line.  This is a workaround for handling Sun style
1352310490Scy	mounts that contains multiple entries on one line: "multi-mount
1353310490Scy	entries".  The sun2amd conversion tools will convert such entries
1354310490Scy	into type:=auto and pack each of the auto-entries into one line
1355310490Scy	separated by '\n'.  The mapc_add_kv function will now recognize
1356310490Scy	such entries and add then.
1357310490Scy
1358310490Scy	* amd/sun2amd.c (sun2amd_convert): Add print statement that
1359310490Scy	includes the line number during a parser failure.
1360310490Scy
1361310490Scy	* sun_map.c: Fix the AMD_MAP_PREF_KW definition.  Fix spelling.
1362310490Scy	(sun_mountpts2amd): removed this function
1363310490Scy	(sun_hsfs2amd): added some more comments
1364310490Scy	(sun_nfs2amd): moved support for multi-mount entries from this
1365310490Scy	function to sun_multi2amd().
1366310490Scy	(sun_multi2amd): New function to handle multi-mount entries.  This
1367310490Scy	function will convert the Sun version to an Amd type:=auto.  Each
1368310490Scy	extra auto entry will be appended to the same line separated by a
1369310490Scy	'\n'.
1370310490Scy	(sun_entry2amd): Fixed a bug if-statement.  This function now
1371310490Scy	checks for multi-mount entries.
1372310490Scy
1373310490Scy	* amd/sun_map.h: Add a fstype member to the sun_mountpt struct.
1374310490Scy
1375310490Scy	* amd/sun_map_parse.y: Parser now supports fstype for multi-mount
1376310490Scy	entries.
1377310490Scy
1378310490Scy	* amd/sun_map_tok.l: No longer print the line and column number
1379310490Scy	when parsing.  This is because the parser is handed strings not
1380310490Scy	files.  Therefore, the line number will always be 1.  It is now up
1381310490Scy	to the higher level tools to echo line information during error
1382310490Scy	when they feed the parser.
1383310490Scy
1384174294Sobrien2005-08-24  Erez Zadok  <ezk@cs.sunysb.edu>
1385174294Sobrien
1386174294Sobrien	* configure.in: wrap all LDAP and HESIOD tests in test whether
1387174294Sobrien	--with-OPT was used.
1388174294Sobrien
1389310490Scy2005-08-20  Daniel P. Ottavio  <dottavio@ic.sunysb.edu>
1390310490Scy
1391310490Scy	* amd/sun_map.c: Clean up #defines
1392310490Scy	(sun_entry2amd) : Verify that the key and entry values passed are
1393310490Scy	not NULL.  Free the Sun entry struct when done.
1394310490Scy
1395310490Scy	* amd/sun_map.h: Add some "not implemented yet" comments to the
1396310490Scy	map and mmap structures.
1397310490Scy
1398310490Scy	* amd/sun_map_parse.y: Removed automap include functionality, it
1399310490Scy	will need to be re-implemented using a pre-processor.
1400310490Scy	Clean up function calls.
1401310490Scy
1402310490Scy2005-08-16  Daniel P. Ottavio  <dottavio@ic.sunysb.edu>
1403310490Scy
1404310490Scy	* amd/sun2amd.c (sun2amd_convert): If the input line is too long
1405310490Scy	don't return an error just null terminate and continue.  Fix bug:
1406310490Scy	the map key was not written.
1407310490Scy
1408310490Scy	* amd/sun_map.c: Add a new Amd device, and cdfs constant.
1409310490Scy	(sun_locations2amd): Write the NFS type keyword
1410310490Scy	for each host of the mount entry.  Add a space between each mount
1411310490Scy	location.
1412310490Scy	(sun_hsfs2amd): New function to support hsfs to
1413310490Scy	cdfs.
1414310490Scy	(sun_nfs2amd): Don't write the nfs type here.  Fix
1415310490Scy	comments.
1416310490Scy	(sun_entry2amd): Change function parameter var for
1417310490Scy	clarity.  Add support for hsfs.
1418310490Scy
1419310490Scy	* amd/sun_map_parse.y (sun_map_parse_read): Reset the entry list
1420310490Scy	after it has been returned.
1421310490Scy
1422174294Sobrien2005-08-16  Erez Zadok  <ezk@cs.sunysb.edu>
1423174294Sobrien
1424310490Scy	* amd/get_args.c (get_args): initialize debug_flags if they've
1425310490Scy	never been set.
1426310490Scy
1427310490Scy2005-08-15  Erez Zadok  <ezk@cs.sunysb.edu>
1428310490Scy
1429310490Scy	* amd/mapc.c (mapc_create): mapc find takes 4th arg, the mount
1430310490Scy	point.  Now, we can properly initialize the cfm structure of the
1431310490Scy	mnt_map, so we can have access to the flags (e.g., SUN_MAP_SYNTAX)
1432310490Scy	inside each info_*.c file.
1433310490Scy	(mapc_find): takes 4rd arg (mntpt) and passes it to calls to
1434310490Scy	mapc_create.
1435310490Scy	(root_newmap): pass NULL as 4th arg (mntpt).
1436310490Scy
1437310490Scy	* amd/amfs_generic.c (amfs_parse_defaults): remove ugly hack to
1438310490Scy	initialize map cfm structure (including flags) so late.
1439310490Scy
1440310490Scy	* amd/autil.c (amfs_mkcacheref): pass mount point as 4th arg to
1441310490Scy	mapc_find.
1442310490Scy
1443310490Scy	* amd/amfs_root.c (amfs_root_mount): pass NULL as new 4th arg to
1444310490Scy	mapc_find.
1445310490Scy
1446310490Scy	* amd/amd.h: extern for mapc_find changed to pass the mount point.
1447310490Scy
1448310490Scy	* libamu/xutil.c: debug_flags should be unsigned.
1449310490Scy	(dbg_opt): fix comments for updated debug_flags, add "defaults".
1450310490Scy	(debug_option): Don't allow "immutable" (D_IMMUTABLE) flags to be
1451310490Scy	changed, because they could mess Amd's state and only make sense
1452310490Scy	to be set once when Amd starts.  Currently these immutable flags
1453310490Scy	are "daemon," "fork," "amq," and "mtab."  If Amd not compiled with
1454310490Scy	debugging, set default "control" options (daemon,fork,amq).
1455310490Scy	(unregister_amq): proper use of D_AMQ.
1456310490Scy
1457310490Scy	* include/am_utils.h: define new D_BASIC, D_CONTROL, D_DEFAULT,
1458310490Scy	D_IMMUTABLE, and D_MASK.  Updated definitions of D_ALL and D_TEST.
1459310490Scy	debug_flags extern should be unsigned.
1460310490Scy
1461310490Scy	* scripts/amd.conf-sample (debug_options): mention new "defaults"
1462310490Scy	option.
1463310490Scy
1464310490Scy	* scripts/amd.conf.5,doc/am-utils.texi: document new debug option
1465310490Scy	"defaults" and properly explain the corrected meanings of
1466310490Scy	"daemon," "fork," "amq," and their "no" inversions.  Better
1467310490Scy	explain "all" and "test" too.  Correct default debug_mtab file to
1468310490Scy	/tmp/mtab.
1469310490Scy
1470310490Scy	* hlfsd/stubs.c (nfsproc_readlink_2_svc): proper use of D_FORK.
1471310490Scy
1472310490Scy	* hlfsd/homedir.c (homedir): proper use of D_FORK.
1473310490Scy
1474310490Scy	* hlfsd/hlfsd.c (main, hlfsd_init, cleanup): proper use of
1475310490Scy	D_DAEMON.
1476310490Scy
1477310490Scy	* amd/nfs_start.c (mount_automounter): proper use of D_AMQ.
1478310490Scy
1479310490Scy	* amd/amd.h (DEBUG_MNTTAB_FILE): change default to /tmp/mtab,
1480310490Scy	which is more common on more systems (instead of /tmp/mnttab).
1481310490Scy
1482310490Scy	* amd/amd.c (main): properly use D_DAEMON.
1483310490Scy
1484310490Scy2005-08-14  Erez Zadok  <ezk@cs.sunysb.edu>
1485310490Scy
1486310490Scy	* libamu/xutil.c (xlog_opt): define new pseudo log_option named
1487310490Scy	"defaults", which is an alias for "fatal,error,user,warning,info".
1488310490Scy
1489310490Scy	* scripts/amd.conf.5, doc/am-utils.texi, amd/amd.8: document new
1490310490Scy	log_option "defaults".
1491310490Scy
1492310490Scy	* amq/amq.8: typo.  Arg name for -D is "debug_options" not
1493310490Scy	"log_options".
1494310490Scy
1495310490Scy	* libamu/xutil.c: make xlog_level static, and initialize it to
1496310490Scy	XLOG_DEFAULT.
1497310490Scy	(cmdoption): take unsigned int as flags argument, and print any
1498310490Scy	errors as XLOG_ERROR (which cannot be turned off).
1499310490Scy	(switch_option): remove old code which disallowed you from turning
1500310490Scy	off flags that were set when Amd started up.  Now, you can turn
1501310490Scy	any log option on/off at start time or later on (via amq -x),
1502310490Scy	other than the two mandatory options (fatal+error).
1503310490Scy
1504310490Scy	* include/am_utils.h (XLOG_*): remove unused XLOG_DEFSTR.  Define
1505310490Scy	XLOG_MASK to mask out unused flag bits.  Define XLOG_DEFAULT to be
1506310490Scy	what it was before (fatal + error + user + warning + info), but
1507310490Scy	use the new mask.  Remove extern's for xlog_level and
1508310490Scy	xlog_level_init.  Change extern for cmdoption() to take an
1509310490Scy	unsigned flags argument.
1510310490Scy
1511310490Scy	* doc/am-utils.texi, amq/amq.8, scripts/amd.conf.5, amd/amd.8:
1512310490Scy	document mandatory log options
1513310490Scy	(fatal+error) which cannot be turned off and are always on by
1514310490Scy	default.  They must be on so that Amd can report crucial errors,
1515310490Scy	including those related to setting flags on/off.
1516310490Scy
1517310490Scy	* hlfsd/hlfsd.c (main): remove hack to initialize log_options.
1518310490Scy
1519310490Scy	* wire-test/wire-test.c: remove reference to unused xlog_level.
1520310490Scy
1521310490Scy	* amd/mapc.c (mapc_create): 'alloc' flags variable should be
1522310490Scy	unsigned.
1523310490Scy
1524310490Scy	* amd/get_args.c (get_args): no need for hack using
1525310490Scy	xlog_level_init.
1526310490Scy
1527310490Scy	* amd/Makefile.am: separate sources common to amd and sun2amd into
1528310490Scy	a special, locally-built only, static library called libaminfo.a.
1529310490Scy
1530310490Scy	* libamu/xutil.c (real_plog, xsnprintf): call new xvsnprintf()
1531310490Scy	wrapper function.
1532310490Scy	(xvsnprintf): new function which already gets a va_list.  This was
1533310490Scy	needed to avoid nesting va_list's (which apparently isn't
1534310490Scy	allowed).
1535310490Scy
1536310490Scy	* include/am_utils.h: prototype for new xvsnprintf wrapper.
1537310490Scy
1538174294Sobrien	* configure.in: sinclude([vers.m4]) version number file.
1539174294Sobrien
1540174294Sobrien	* vers.m4: new file to separate version number out of
1541174294Sobrien	configure.in, useful for nightly snapshot script to generate
1542174294Sobrien	nightly version string.
1543174294Sobrien
1544174294Sobrien	* Makefile.am (EXTRA_DIST_M4): include vers.m4 in distro.
1545174294Sobrien
1546310490Scy2005-08-14  Daniel P. Ottavio  <dottavio@ic.sunysb.edu>
1547310490Scy
1548310490Scy	* amd/info_file.c: add key to sun_entry2amd()'s parameters
1549310490Scy
1550310490Scy	* amd/info_hesiod.c: add key to sun_entry2amd()'s parameters
1551310490Scy
1552310490Scy	* amd/info_ldap.c: add key to sun_entry2amd()'s parameters
1553310490Scy
1554310490Scy	* amd/info_ndbm.c: add key to sun_entry2amd()'s parameters
1555310490Scy
1556310490Scy	* amd/info_nis.c: add key to sun_entry2amd()'s parameters
1557310490Scy
1558310490Scy	* amd/info_nisplus.c: add key to sun_entry2amd()'s parameters
1559310490Scy
1560310490Scy	* amd/sun_map.c: New functions to support sun translation to amd.
1561310490Scy	The function sun_entry2amd's parameters were expanded to include
1562310490Scy	the key value.  sun_entry_2amd() now returns NULL on error.
1563310490Scy
1564310490Scy	* amd/sun_map.h: Expand sun_entry2amd's parameters to include key
1565310490Scy	value.
1566310490Scy
1567310490Scy	* amd/sun_map_parse.y: Change how file system types are parsed out
1568310490Scy	of the list of options for each entry.  The previous way was not
1569310490Scy	working properly so now we just look for the 'fstype' keyword in
1570310490Scy	each option.  If it exists we copy its key value.
1571310490Scy	Added some comments to sun_map_parse_read().
1572310490Scy
1573310490Scy	* amd/amd.h: Added an extern from info_file.c called
1574310490Scy	file_read_line().  Previously this function was static but is now
1575310490Scy	used in sun2amd.c.
1576310490Scy
1577310490Scy	* amd/info_file.c: Changed the static function read_line() to a
1578310490Scy	public function called file_read_line().  This function is now
1579310490Scy	used in sun2amd.c
1580310490Scy
1581310490Scy	* amd/sun2amd.8: Filled in the contents of this man page.  This is
1582310490Scy	a conversion utility that converts Sun maps to Amd maps.
1583310490Scy
1584310490Scy	* amd/sun2amd.c: Implemented a working version of this utility.
1585310490Scy
1586174294Sobrien2005-08-11  Erez Zadok  <ezk@cs.sunysb.edu>
1587174294Sobrien
1588310490Scy	* amd/sun_map_parse.y: instead of using a custom FOO_alloc()
1589310490Scy	function, use Amd's CALLOC(struct FOO) macro.
1590310490Scy
1591310490Scy	* amd/sun_map.h: remove extern definitions to functions no longer
1592310490Scy	needed.
1593310490Scy
1594310490Scy	* amd/sun_map.c: removed superfluous *_alloc() functions, some of
1595310490Scy	which caused conflicts with same-named symbols in the parser
1596310490Scy	(since we rename 'yyalloc' to 'sun_map_alloc').
1597310490Scy
1598174294Sobrien	* configure.in: keep AC_INIT on same line, for nightly snapshot
1599174294Sobrien	build script.
1600174294Sobrien
1601310490Scy	* amd/Makefile.am: f/lex libraries are incompatible with multiple
1602310490Scy	scanners, so don't link Amd with libl.a/libfl.a.
1603310490Scy
1604310490Scy2005-08-10  Daniel P. Ottavio  <dottavio@ic.sunysb.edu>
1605310490Scy
1606310490Scy	* amd/sun_map_tok.l: Clean up regular expression so HPUX stops
1607310490Scy	whining.
1608310490Scy
1609310490Scy2005-08-09  Daniel P. Ottavio  <dottavio@ic.sunysb.edu>
1610310490Scy
1611310490Scy	* amd/sun_map_parse.y: Moved license below special yacc bracket to
1612310490Scy	be portable with HPUX's yacc.  Clean up externs.
1613310490Scy
1614310490Scy	* amd/sun_map_tok.l: Moved license below special lex bracket to be
1615310490Scy	portable with HPUX's lex.  Fixed definitions to allow for a
1616310490Scy	non-flex lex to parse strings instead of files.  Added some casts
1617310490Scy	to strlcpy usage to silence warnings.  Moved the % options because
1618310490Scy	HPUX was complaining,
1619310490Scy
1620310490Scy2005-08-08  Daniel P. Ottavio  <dottavio@ic.sunysb.edu>
1621310490Scy
1622310490Scy	* amd/sun_map_tok.l: Applied some definition goop to handle the
1623310490Scy	ECHO symbol that lex defines.  This symbol causes problems on
1624310490Scy	RedHat-EL-powerPC platforms.  Replaced strncpy with strlcpy.
1625310490Scy	Renamed the function sun_map_yyinput to sun_map_input.  This
1626310490Scy	function is a utility function that is not generated by lex.
1627310490Scy	Therefore, the 'yy' may cause confusion.
1628310490Scy
1629310490Scy2005-08-08  Erez Zadok  <ezk@cs.sunysb.edu>
1630310490Scy
1631310490Scy	* amd/sun_map_tok.l: allocate more output slots so lex scanners
1632310490Scy	don't run out of memory.
1633310490Scy
1634310490Scy	* amd/sun_map_parse.y: declare extern for sun_map_parse().
1635310490Scy
1636310490Scy	* libamu/xutil.c (xsnprintf): ensure proper comparisons between
1637310490Scy	signed and unsigned quantities.
1638310490Scy
1639174294Sobrien2005-08-06  Erez Zadok  <ezk@cs.sunysb.edu>
1640174294Sobrien
1641310490Scy	* libamu/util.c, amd/autil.c (strsplit): moved strsplit() function
1642310490Scy	from Amd code to to libamu, so sun2amd could use it.
1643310490Scy
1644310490Scy	* amd/Makefile.am (sbin_PROGRAMS): build sun2amd binary and man
1645310490Scy	page.
1646310490Scy	(EXTRA_sun2amd_OBJECTS): sun2amd needs to link with all info_*.c files
1647310490Scy
1648310490Scy	* amd/sun2amd.8: placeholder for man page.
1649310490Scy
1650310490Scy	* amd/sun2amd.c: placeholder for C version of translator from Sun
1651310490Scy	syntax maps to Amd maps.
1652310490Scy
1653310490Scy	* */*.[0-9]: include file name in nroff source comment.
1654310490Scy
1655310490Scy	* ALL: use '0' properly when assigning or passing it to functions.
1656310490Scy	If in the context pointer, use NULL.  If in the context of a
1657310490Scy	single char (say within a string), the use '\0'.  This is just to
1658310490Scy	make the code clearer.
1659310490Scy
1660310490Scy	* m4/macros/header_templates.m4: template for HAVE_MAP_SUN.
1661310490Scy
1662310490Scy	* amd/mapc.c (maptypes): add placeholder for Sun-syntax map
1663310490Scy	methods.
1664310490Scy
1665310490Scy	* amd/Makefile.am (EXTRA_amd_SOURCES): compile info_sun.c
1666310490Scy
1667310490Scy	* amd/info_sun.c: placeholder for meta info parser to get info
1668310490Scy	from Sun automount-style /etc/auto_master, possibly following
1669310490Scy	into multiple info services (via /etc/nsswitch.conf).
1670310490Scy
1671310490Scy	* libamu/xutil.c (xsnprintf): if vsnprintf truncated the output
1672310490Scy	string to avoid an overflow, print an error.  Include some code to
1673310490Scy	break out any possible infinite loop between plog() and
1674310490Scy	xsnprintf().
1675310490Scy	(real_plog): now we can use (carefully) xsnprintf() directly.
1676310490Scy
1677310490Scy	* amd/sun_map.[hc]: cleanup and formatting.
1678310490Scy
1679310490Scy	* amd/sun_map_parse.y: to match the literal string "fstype=" use
1680310490Scy	double quotes, not single quotes.
1681310490Scy
1682310490Scy	* amd/get_args.c (get_args): call conf_parse() using conf_in.
1683310490Scy
1684310490Scy	* amd/amd.h: use renamed parser symbols (yyparse -> conf_parse;
1685310490Scy	yyin -> conf_in).
1686310490Scy
1687310490Scy	* ylwrap: Enhance wrapper to avoid the #define hacks done by Gdb,
1688310490Scy	and suggested by the Automake manual.  This enhanced parser will
1689310490Scy	prefix each conflicting yacc/lex symbol with a unique name
1690310490Scy	produced from INPUT.  For example, if INPUT is foo_parse.y, then
1691310490Scy	yyparse() becomes foo_parse().  This requires that both your .l
1692310490Scy	and corresponding .y files have the same prefix (e.g., foo_parse.y
1693310490Scy	and foo_tok.l).
1694310490Scy
1695310490Scy	* amd/Makefile.am (BUILT_SOURCES): define which yacc/lex .h/.c
1696310490Scy	source files are built automatically, and therefore should not be
1697310490Scy	in the distro (IMHO), and should be cleaned upon "make clean".
1698310490Scy	(amd_SOURCES): include new sun_map_parse.y and sun_map_tok.l files.
1699310490Scy
1700310490Scy	* ylwrap: new file needed because we have two parsers now.
1701310490Scy
1702310490Scy	* amd/sun_map_{parse.y,tok.l}: cleanup and formatting.
1703310490Scy
1704310490Scy2005-08-06  Daniel P. Ottavio  <dottavio@ic.sunysb.edu>
1705310490Scy
1706310490Scy	* amd/Makefile.am: Added new files sun_map.h, sun_map.c,
1707310490Scy	sun_map_parse.y, and sun_map_tok.l.  These files add support for
1708310490Scy	parsing Sun style maps.  The yacc/lex files needed custom rules so
1709310490Scy	they don't cause symbol conflicts with each other.
1710310490Scy
1711310490Scy	* amd/amd.h: Added "#define INFO_MAX_LINE_LEN" that specifies the
1712310490Scy	line limit for info services.
1713310490Scy
1714310490Scy	* amd/info_exec.c: Replaced MAX_LINE_LEN with INFO_MAX_LINE_LEN
1715310490Scy
1716310490Scy	* amd/info_file.c: Replaced MAX_LINE_LEN with INFO_MAX_LINE_LEN,
1717310490Scy	added support for parsing Sun style maps.  The support for Sun
1718310490Scy	maps is done using the sun_entry2amd() function.  This function is
1719310490Scy	called for each entry line that is read only when Sun parsing is
1720310490Scy	enabled.  For each entry line that is passed to the function a
1721310490Scy	copy of the Amd equivalent is returned.
1722310490Scy
1723310490Scy	* amd/sun_map.h: new header file for Sun style map support
1724310490Scy
1725310490Scy	* amd/sun_map.c: new source file for Sun style map support, clean
1726310490Scy	up comments, additional sun2amd conversion routines
1727310490Scy
1728310490Scy	* amd/sun_map_parse.y: new yacc file for parsing Sun style maps,
1729310490Scy	fix copyright notice, put filename below license.
1730310490Scy
1731310490Scy	* amd/sun_map_tok.l: new lex file for parsing Sun style maps, fix
1732310490Scy	copyright notice, put filename below license.
1733310490Scy
1734310490Scy	* amd/get_args.c: replace usage of strlcat with xstrlcat
1735310490Scy
1736310490Scy	* include/am_utils.h: added 'extern void xstrlcat()'
1737310490Scy
1738310490Scy	* libamu/util.c: Added a xstrlcat() function that wraps the
1739310490Scy	syscall strlcat() so that string truncations can be logged.
1740310490Scy
1741310490Scy2005-08-06  Erez Zadok  <ezk@cs.sunysb.edu>
1742310490Scy
1743310490Scy	* amd/info_file.c (file_search, file_reload): pass mnt_map to
1744310490Scy	file_search_or_reload.
1745310490Scy	(file_search_or_reload): ensure that mnt_map is never NULL.
1746310490Scy
1747310490Scy	* amd/info_nis.c (nis_search): call sun_entry2amd() if
1748310490Scy	sun_map_syntax=yes.
1749310490Scy
1750310490Scy	* amd/info_ldap.c (amu_ldap_search): call sun_entry2amd() if
1751310490Scy	sun_map_syntax=yes.
1752310490Scy
1753310490Scy	* amd/info_hesiod.c (hesiod_search): call sun_entry2amd() if
1754310490Scy	sun_map_syntax=yes.
1755310490Scy
1756310490Scy	* amd/info_ndbm.c (ndbm_search): pass mnt_map to search_ndbm.
1757310490Scy	(search_ndbm): call sun_entry2amd() if sun_map_syntax=yes.
1758310490Scy
1759310490Scy	* amd/info_nisplus.c (nisplus_search): call sun_entry2amd() if
1760310490Scy	sun_map_syntax=yes.
1761310490Scy
1762310490Scy	* amd/info_exec.c (exec_search): pass mnt_map to
1763310490Scy	exec_parse_qanswer.
1764310490Scy	(exec_parse_qanswer): call sun_entry2amd() if sun_map_syntax=yes.
1765310490Scy
1766310490Scy	* doc/am-utils.texi (sun_map_syntax Parameter): document new
1767310490Scy	common parameter.
1768310490Scy
1769174294Sobrien	* scripts/amd.conf.5: selectors_in_defaults is a common parameter,
1770174294Sobrien	not just [global].  Use consistent capitalization of Amd/Amq.
1771310490Scy	Document new sun_map_syntax parameter.
1772174294Sobrien
1773174294Sobrien	* scripts/amd.conf-sample: properly list all of the parameters
1774174294Sobrien	which are common to both the [global] and the per-map sections.
1775310490Scy	(sun_map_syntax): example of new parameter.
1776174294Sobrien
1777174294Sobrien	* doc/am-utils.texi (Common Parameters): selectors_in_defaults is
1778174294Sobrien	a common parameter, not just [global].
1779174294Sobrien
1780174294Sobrien	* scripts/amd.conf-sample (sun_map_syntax): example of new flag.
1781174294Sobrien
1782310490Scy	* amd/conf.c ({ropt,gopt}_sun_map_syntax): new function to parse
1783310490Scy	sun_map_syntax flag (global or per map).
1784310490Scy
1785310490Scy	* amd/amd.h (CFM_SUN_MAP_SYNTAX): new flag for users to say if the
1786310490Scy	map uses Sun automounter syntax.
1787310490Scy
1788174294Sobrien	* cvs-server.txt: update instructions after branching 6.1-stable.
1789174294Sobrien
1790174294Sobrien2005-08-02  Erez Zadok  <ezk@cs.sunysb.edu>
1791174294Sobrien
1792174294Sobrien	*******************************************************************
1793174294Sobrien	*** Released am-utils-6.1.1					***
1794174294Sobrien	*******************************************************************
1795174294Sobrien
1796174294Sobrien	* libamu/xutil.c (xsnprintf): "unsafe" alternative to vsnprintf is
1797174294Sobrien	vsprintf, not sprintf.
1798174294Sobrien
1799174294Sobrien	* conf/umount/umount_osf.c (umount_fs): refer to proper formal
1800174294Sobrien	parameter name.
1801174294Sobrien	(umount2_fs): pass second arg to umount().
1802174294Sobrien
1803174294Sobrien	* ALL: remove CVS ID and put actual file name in source.
1804174294Sobrien
1805174294Sobrien	* conf/autofs/*.[hc]: proper copyright headers.
1806174294Sobrien
1807174294Sobrien	* whitespace reformatting.  Remove remaining '%W%' SCCS IDs.
1808174294Sobrien
1809174294Sobrien	* amd/mntfs.c (free_mntfs): don't discard the last reference to an
1810174294Sobrien	mntfs that had been mounted already.  It won't have the
1811174294Sobrien	MFF_RESTARTED flag on, as it gets turned off after the entry is
1812174294Sobrien	mounted, but it will have the MFF_RSTKEEP flag on.
1813174294Sobrien
1814174294Sobrien	* amd/autil.c (mf_mounted), amd/restart.c (restart_fake_mntfs):
1815174294Sobrien	show the mntfs's flags.
1816174294Sobrien
1817174294Sobrien2005-08-01  Erez Zadok  <ezk@cs.sunysb.edu>
1818174294Sobrien
1819174294Sobrien	* conf/mtab/mtab_linux.c: removed unused code.  Cleanup.
1820174294Sobrien	(handler): removed this bad signal handler.
1821174294Sobrien	(lock_mtab): Redhat's original code set a signal handler called
1822174294Sobrien	"handler()" for all non-ALRM signals.  The handler called
1823174294Sobrien	unlock_mntlist(), plog'ed the signal name, and then exit(1)!
1824174294Sobrien	Never, ever, exit() from inside a utility function.  This messed
1825174294Sobrien	up Amd's careful signal-handling code, and caused Amd to abort
1826174294Sobrien	uncleanly only any other "innocent" signal
1827174294Sobrien	(even simple SIGUSR1), leaving behind a hung Amd mnt point.  That
1828174294Sobrien	code should have at least restored the signal handlers' states
1829174294Sobrien	upon a successful mtab unlocking.  Anyway, that handler was
1830174294Sobrien	unnecessary, because will call unlock_mntlist() properly anyway on
1831174294Sobrien	exit.
1832174294Sobrien
1833174294Sobrien	* conf/mtab/mtab_{file,isc3,mach3,linux}.c (unlock_mntlist): dlog
1834174294Sobrien	message that we're inside the unlock_mntlist function.
1835174294Sobrien
1836174294Sobrien	* amd/amd.c (main): use new setup_sighandler() for Amd's four main
1837174294Sobrien	signals (INT, TERM, HUP, and CHLD).
1838174294Sobrien	(main) Add SIGINT and SIGTERM to masked_sigs, used in
1839174294Sobrien	nfs_start.c:do_select() for setjmp/longjmp code; the MASK was set
1840174294Sobrien	to all four signals if !HAVE_SIGACTION, but only to HUP+CHLD if we
1841174294Sobrien	HAVE_SIGACTION.  So this change makes Amd behave consistently.
1842174294Sobrien
1843174294Sobrien	* include/am_utils.h: extern for new setup_sighandler().
1844174294Sobrien
1845174294Sobrien	* libamu/xutil.c (setup_sighandler): new utility function to setup
1846174294Sobrien	a single signal-handler regardless of what method is supported by
1847174294Sobrien	this OS.
1848174294Sobrien	(going_down): call unlock_mntlist() when exiting, to ensure that
1849174294Sobrien	Amd will remove any leftover mtab lock files, if any.
1850174294Sobrien
1851174294Sobrien	* amd/restart.c (restart_automounter_nodes): cleanup function.
1852174294Sobrien
1853174294Sobrien	* minor new port: i386-pc-linuxoldld-deb3.1.
1854174294Sobrien
1855174294Sobrien	* configure.in: include <sys/types.h> before <linux/socket.h> to
1856174294Sobrien	get the definition of size_t on Debian-3.1r0a.
1857174294Sobrien
1858174294Sobrien2005-07-29  Erez Zadok  <ezk@cs.sunysb.edu>
1859174294Sobrien
1860174294Sobrien	* amd/srvr_nfs.c (find_nfs_srvr): don't blindly copy the hostent
1861174294Sobrien	IP address.  First check if it differs from the existing one of
1862174294Sobrien	the fserver, and copy only if it changed.  If it did change, flush
1863174294Sobrien	the fhandle cache to avoid a stale fhandle being reused.  This
1864174294Sobrien	allows Amd to detect IP address changes even for an fserver that
1865174294Sobrien	lost one or more NFS pings, but not enough to be declared totally
1866174294Sobrien	down.  We handle the "totally down" fserver case in
1867174294Sobrien	check_fs_addr_change().
1868174294Sobrien
1869174294Sobrien	* amd/ops_nfs.c (nfs_umount), amd/sched.c (sched_task),
1870174294Sobrien	amd/nfs_subr.c (nfs_quick_reply): code clarity.
1871174294Sobrien
1872174294Sobrien	* conf/mount/mount_linux.c (linux_nfs_error): dlog mappings of
1873174294Sobrien	errnos to NFS errors.
1874174294Sobrien
1875174294Sobrien	* conf/umount/umount_linux.c (umount2_fs): cleanup code.  Trying
1876174294Sobrien	stat() seems doomed to hang at times, so don't try stat at all,
1877174294Sobrien	because umount2() appears to be clever enough to never hang.
1878174294Sobrien
1879174294Sobrien2005-07-25  Erez Zadok  <ezk@cs.sunysb.edu>
1880174294Sobrien
1881174294Sobrien	* amd/amd.h (FSF_FORCE_UNMOUNT): new flag used to indicate that a
1882174294Sobrien	particular fserver may need forced/lazy unmounts when it's mntfs's
1883174294Sobrien	are unmounted.
1884174294Sobrien
1885174294Sobrien	* amd/ops_nfs.c (nfs_umount): a simple unmount returned EBUSY, and
1886174294Sobrien	the user specified forced_unmounts=yes in amd.conf, and this
1887174294Sobrien	fserver was flagged with FSF_FORCE_UNMOUNT, and the OS supports
1888174294Sobrien	forced/lazy unmounts, then try forced/lazy unmounts.  This should
1889174294Sobrien	allow a hung mount point to be removed.
1890174294Sobrien
1891174294Sobrien	* amd/srvr_nfs.c (find_nfs_srvr): move away IP-address change
1892174294Sobrien	detection code to its own function.
1893174294Sobrien	(check_fs_addr_change): new function to detect if the IP address
1894174294Sobrien	of a downed host has changed, and do various cleanups and fixups
1895174294Sobrien	to try and recover as best from that situation (e.g., flushing
1896174294Sobrien	various caches).  Also set the FSF_FORCE_UNMOUNT flag for the
1897174294Sobrien	fserver in question.
1898174294Sobrien	(flush_srvr_nfs_cache): pass fserver as argument, so we can
1899174294Sobrien	selectively flush the NFS cache for a single fserver (or all of
1900174294Sobrien	them, if you pass NULL).
1901174294Sobrien
1902174294Sobrien	* libamu/xutil.c (switch_to_logfile): truncate a regular-file log
1903174294Sobrien	file if user passed non-zero "truncate_log" flag.
1904174294Sobrien
1905174294Sobrien	* include/am_utils.h: switch_to_logfile() now takes a 3rd arg.
1906174294Sobrien
1907174294Sobrien	* amd/get_args.c (get_args): pass "truncate_log" flag as per
1908174294Sobrien	amd.conf global settings.
1909174294Sobrien
1910174294Sobrien	* amd/conf.c (gopt_truncate_log): store global value of
1911174294Sobrien	truncate_log flag.
1912174294Sobrien
1913174294Sobrien	* amd/amq_subr.c (amqproc_setopt_1_svc), hlfsd/hlfsd.c (main,
1914174294Sobrien	reload): don't truncate log file when calling switch_to_logfile().
1915174294Sobrien
1916174294Sobrien	* amd/amd.h (CFM_TRUNCATE_LOG): new flag.  Fix comment typo.
1917174294Sobrien
1918174294Sobrien	* NEWS, doc/am-utils.texi (truncate_log Parameter),
1919174294Sobrien	scripts/amd.conf.5, scripts/amd.conf-sample (log_file): document
1920174294Sobrien	new truncate_log amd.conf parameter.
1921174294Sobrien
1922174294Sobrien	* amd/conf.c (gopt_forced_unmounts): check Linux kernel version
1923174294Sobrien	and alert if your version may be too old for MNT_FORCE to work
1924174294Sobrien	(before 2.4.0) or for MNT_DETACH to work (before 2.6.0).
1925174294Sobrien	Otherwise it may be impossible to pin down the exact kernel
1926174294Sobrien	version in which we should enable this feature.
1927174294Sobrien
1928174294Sobrien	* conf/umount/umount_linux.c (umount2_fs): if MNT_FORCE returned
1929174294Sobrien	EBUSY, then don't try to stat(2) before MNT_DETACH because it
1930174294Sobrien	could hang.
1931174294Sobrien
1932174294Sobrien2005-07-21  Erez Zadok  <ezk@cs.sunysb.edu>
1933174294Sobrien
1934174294Sobrien	* conf/umount/umount_linux.c (umount_fs): cleanup this function,
1935174294Sobrien	breaking long "if" statements using "goto out".
1936174294Sobrien
1937174294Sobrien	* conf/umount/umount_{aix,bsd44,osf,default,linux}.c (umount_fs):
1938174294Sobrien	call new utility function umount2_fs() as needed (EBUSY, EIO, or
1939174294Sobrien	ESTALE).
1940174294Sobrien
1941174294Sobrien	* conf/umount/umount_{aix,bsd44,osf,default,linux}.c (umount2_fs):
1942174294Sobrien	define a new utility function to invoke forcible/lazy unmounts
1943174294Sobrien	without touching any mtab files.  This separate utility function
1944174294Sobrien	is useful because it can be called from elsewhere.
1945174294Sobrien
1946174294Sobrien	* amd/amfs_toplvl.c (amfs_toplvl_init): new function, called
1947174294Sobrien	before Amd mounts toplvl mounts, which gives us a hook for cleanup
1948174294Sobrien	of a previously dead Amd.  In our case, if the user asked for
1949174294Sobrien	forced_unmounts, and the OS supports it, then we try forced/lazy
1950174294Sobrien	unmounts on any previous toplvl mounts.  This is useful if a
1951174294Sobrien	previous Amd died and left behind toplvl mount points (this Amd
1952174294Sobrien	will clean them up!).  WARNING: Don't use forced/lazy unmounts if
1953174294Sobrien	you have another valid Amd running, because this code WILL force
1954174294Sobrien	those valid toplvl mount points to be detached as well!
1955174294Sobrien
1956174294Sobrien	* amd/amfs_toplvl.c (amfs_toplvl_umount): don't unconditionally
1957174294Sobrien	try forced/lazy unmounts because it will prevent a normal Amd from
1958174294Sobrien	terminating and cleaning up properly (self-deadlocking: detached
1959174294Sobrien	mounts hang the parent Amd on a stat).  Since we already do
1960174294Sobrien	unmounts in the background, then try a safer policy: after trying
1961174294Sobrien	the normal unmounts a few times (5 sec), escalate and try forced
1962174294Sobrien	unmounts a few times (5 more seconds), and if even that failed,
1963174294Sobrien	then try the ultimate -- detached unmounts (which always succeed).
1964174294Sobrien	This allows Amd to first try and shutdown cleanly, and gradually
1965174294Sobrien	try more forcible ways to shutdown.  On Linux, this procedure will
1966174294Sobrien	cleanly shutdown Amd even if there are processes with their CWD on
1967174294Sobrien	Amd's mount points (which normally result in EBUSY).
1968174294Sobrien
1969174294Sobrien2005-07-20  Erez Zadok  <ezk@cs.sunysb.edu>
1970174294Sobrien
1971174294Sobrien	* Makefile.am (EXTRA_DIST_CONF): add new umount_aix.c to distro.
1972174294Sobrien
1973174294Sobrien	* conf/umount/umount_aix.c: easier if AIX has its own unmount
1974174294Sobrien	helper file.
1975174294Sobrien
1976174294Sobrien	* m4/macros/check_umount_style.m4: AIX needs its own unmount style
1977174294Sobrien	file.
1978174294Sobrien
1979174294Sobrien	* doc/am-utils.texi (forced_unmounts Parameter): @xref -> @pxref.
1980174294Sobrien
1981174294Sobrien2005-07-19  Erez Zadok  <ezk@cs.sunysb.edu>
1982174294Sobrien
1983174294Sobrien	* conf/nfs_prot/nfs_prot_aix5_2.h: define compatible
1984174294Sobrien	forced-unmount flag.
1985174294Sobrien
1986174294Sobrien	* conf/umount/umount_default.c (umount_fs): if regular umount got
1987174294Sobrien	EBUSY, EIO, or ESTALE, then try forced unmount, if supported.  Try
1988174294Sobrien	umount2 (Solaris) or uvmount (AIX).
1989174294Sobrien
1990174294Sobrien	* conf/umount/umount_{bsd44,osf}.c (umount_fs): if default
1991174294Sobrien	umount() failed with EIO or ESTALE, also try forced unmount.
1992174294Sobrien
1993174294Sobrien2005-07-18  Erez Zadok  <ezk@cs.sunysb.edu>
1994174294Sobrien
1995174294Sobrien	* amd/autil.c (amfs_mount), amd/amfs_toplvl.c
1996174294Sobrien	(amfs_toplvl_umount): enable forced/lazy unmounts only if user
1997174294Sobrien	asked for it (and dlog it).
1998174294Sobrien
1999174294Sobrien	* scripts/amd.conf.5: document new force_unmount global parameter.
2000174294Sobrien
2001174294Sobrien	* doc/am-utils.texi (forced_unmounts Parameter): document new
2002174294Sobrien	global parameter.
2003174294Sobrien
2004174294Sobrien	* amd/conf.c (gopt_forced_unmounts): process forced_unmounts
2005174294Sobrien	option (default "no").  Exit with an error if user specified the
2006174294Sobrien	option as "yes" but configure couldn't find support for either the
2007174294Sobrien	MNT_FORCE or MNT_DETACH flags.
2008174294Sobrien
2009174294Sobrien	* scripts/amd.conf-sample (forced_unmounts): example usage of new
2010174294Sobrien	option.
2011174294Sobrien
2012174294Sobrien	* amd/amd.h (CFM_FORCED_UNMOUNTS): new flag for forced_unmounts
2013174294Sobrien	option.
2014174294Sobrien
2015174294Sobrien	* m4/macros/header_templates.m4: templates for _DETACH and _FORCE.
2016174294Sobrien
2017174294Sobrien	* configure.in: check for generic u/mount options "detach" and
2018174294Sobrien	"force".
2019174294Sobrien
2020174294Sobrien	* include/am_utils.h (UMOUNT_FS, umount_fs): new prototypes.
2021174294Sobrien	Define AMU_UMOUNT flags for force, detach, and autofs.
2022174294Sobrien
2023174294Sobrien	* amd/amfs_toplvl.c (amfs_toplvl_umount): pass _FORCE and _DETACH
2024174294Sobrien	unmount flags unconditionally.  Pass them to UMOUNT_FS().
2025174294Sobrien
2026174294Sobrien	* conf/nfs_prot/nfs_prot_linux.h: define MNT_FORCE and MNT_DETACH
2027174294Sobrien	if needed, because some Linux systems don't define them
2028174294Sobrien	(presumably because it would be too dangerous to expose these
2029174294Sobrien	flags to users).
2030174294Sobrien
2031174294Sobrien	* amd/autil.c (amfs_mount): if mount(2) failed with ESTALE or EIO,
2032174294Sobrien	then assume that we're in trouble, possibly because a previous
2033174294Sobrien	mount is hung.  So, first try to force a lazy unmount of the old
2034174294Sobrien	mount.  If the forced unmount worked, then try again to mount the
2035174294Sobrien	desired file system.  If the forced unmount failed, then don't
2036174294Sobrien	retry: just return an error.
2037174294Sobrien
2038174294Sobrien	* amd/amfs_generic.c (amfs_generic_umount), amd/amfs_host.c
2039174294Sobrien	(amfs_host_umount), amd/ops_cachefs.c (cachefs_umount),
2040174294Sobrien	amd/ops_cdfs.c (cdfs_umount), amd/ops_efs.c (efs_umount),
2041174294Sobrien	amd/ops_lofs.c (lofs_umount), amd/ops_nfs.c (nfs_umount),
2042174294Sobrien	amd/ops_pcfs.c (pcfs_umount), amd/ops_ufs.c (ufs_umount),
2043174294Sobrien	amd/ops_xfs.c (xfs_umount), conf/umount/umount_bsd44.c
2044174294Sobrien	(umount_fs), conf/umount/umount_default.c (umount_fs),
2045174294Sobrien	conf/umount/umount_linux.c (umount_fs), conf/umount/umount_osf.c
2046174294Sobrien	(umount_fs): compute and use unmount specific flags.
2047174294Sobrien
2048174294Sobrien2005-07-16  Erez Zadok  <ezk@cs.sunysb.edu>
2049174294Sobrien
2050174294Sobrien	* configure.in: better help for users, if nfs_args can't be found.
2051174294Sobrien
2052174294Sobrien2005-07-15  Erez Zadok  <ezk@cs.sunysb.edu>
2053174294Sobrien
2054174294Sobrien	* BUGS: more details on AIX's need to install bos.net.nfs.adt
2055174294Sobrien	before configuring am-utils (else configure cannot find struct
2056174294Sobrien	nfs_args on AIX).
2057174294Sobrien
2058174294Sobrien2005-07-10  Erez Zadok  <ezk@cs.sunysb.edu>
2059174294Sobrien
2060174294Sobrien	* amd/srvr_nfs.c (find_nfs_srvr): flush NFS handle cache if the IP
2061174294Sobrien	address of a down server had changed.
2062174294Sobrien
2063174294Sobrien	* amd/info_union.c (union_reload): use safer xsnprintf() routine.
2064174294Sobrien
2065174294Sobrien	* amd/srvr_nfs.c (find_nfs_srvr): check to see if the IP address
2066174294Sobrien	of a named but down fserver changed (i.e., the previous IP address
2067174294Sobrien	is no longer responding).  If so, then reset the fserver to the
2068174294Sobrien	new IP address, and set the fserver's flags such that the function
2069174294Sobrien	will fall through to doing the usual NFS version/proto checks and
2070174294Sobrien	pinging.  (This should fix one case of bug #308.)
2071174294Sobrien
2072174294Sobrien	* conf/umount/umount_linux.c (umount_fs): warn if plain umount()
2073174294Sobrien	failed, before we try to ignore any errors or try optional
2074174294Sobrien	umount2(), possibly with forced/lazy unmount.
2075174294Sobrien	(umount_fs): dlog when unmount succeeded.
2076174294Sobrien
2077174294Sobrien2005-07-08  Erez Zadok  <ezk@cs.sunysb.edu>
2078174294Sobrien
2079174294Sobrien	* conf/mount/mount_linux.c: add a couple more NFSv2 error codes
2080174294Sobrien	that are compatible with NFSv3.
2081174294Sobrien
2082174294Sobrien2005-07-07  Erez Zadok  <ezk@cs.sunysb.edu>
2083174294Sobrien
2084174294Sobrien	* m4/macros/header_templates.m4: extern template for strlcat().
2085174294Sobrien
2086174294Sobrien	* amd/get_args.c (get_version_string): use safer strlcat (or
2087174294Sobrien	replacement strlcat).  Use new wrapper xsnprintf() function, which
2088174294Sobrien	will use the safer vsnprintf() if available, else default to plain
2089174294Sobrien	sprintf.
2090174294Sobrien
2091174294Sobrien	* configure.in: check for existence of strlcat() and its extern,
2092174294Sobrien	replacing with libamu/strlcat.c as needed.
2093174294Sobrien
2094174294Sobrien	* libamu/Makefile.am (EXTRA_DIST): add strlcat.c to distro.
2095174294Sobrien
2096174294Sobrien	* include/am_defs.h: optional strlcat() extern.
2097174294Sobrien
2098174294Sobrien	* include/am_utils.h: extern for new xvsnprintf().
2099174294Sobrien
2100174294Sobrien	* configure.in: overdue new major libtool shlib version.
2101174294Sobrien	Check for snprintf function and extern.
2102174294Sobrien
2103174294Sobrien2005-07-06  Erez Zadok  <ezk@cs.sunysb.edu>
2104174294Sobrien
2105174294Sobrien	* conf/nfs_prot/nfs_prot_aix4_3.h: cleanup struct
2106174294Sobrien	aix4_nfs_args_bis.
2107174294Sobrien
2108174294Sobrien	* Makefile.am (EXTRA_DIST_CONF): include mount_aix3.c in
2109174294Sobrien	distribution.
2110174294Sobrien
2111174294Sobrien	* conf/mount/mount_aix.c: mount style for aix 5.x and newer.
2112174294Sobrien
2113174294Sobrien	* conf/mount/mount_aix3.c: mount styles for aix 3.x/4.x.
2114174294Sobrien
2115174294Sobrien	* m4/macros/check_mount_style.m4: split mount styles for
2116174294Sobrien	aix3.x/4.x and the newer (and better) aix 5.x code.
2117174294Sobrien
2118174294Sobrien2005-07-05  Erez Zadok  <ezk@cs.sunysb.edu>
2119174294Sobrien
2120174294Sobrien	* amq/pawd.c (getawd): avoid buffer overflow.  Bug fix from Graeme
2121174294Sobrien	Wilford <G.Wilford@surrey.ac.uk>.
2122174294Sobrien
2123174294Sobrien2005-06-30  Erez Zadok  <ezk@cs.sunysb.edu>
2124174294Sobrien
2125174294Sobrien	* amd/map.c (get_next_exported_ap): Avoid running off the end of
2126174294Sobrien	the exported_ap[] array.  Patch from jon+amd-at-spock.org.  Fixed
2127174294Sobrien	bug #301.
2128174294Sobrien
2129174294Sobrien2005-06-25  Erez Zadok  <ezk@cs.sunysb.edu>
2130174294Sobrien
2131174294Sobrien	* Makefile.am (EXTRA_DIST_CONF): distribute new mtab_linux.c.
2132174294Sobrien
2133174294Sobrien	* conf/mtab/mtab_linux.c (rewrite_mtab): variable declarations
2134174294Sobrien	must come before C code.
2135174294Sobrien
2136174294Sobrien	* conf/mtab/mtab_linux.c: Linux-specific mount table hanlding
2137174294Sobrien	that's safe (uses locks, handles symlinks to /proc/mounts, etc.).
2138174294Sobrien	Patch from Red Hat, which they adapted from mtab_file.c.  Minor
2139174294Sobrien	fixes to this file.
2140174294Sobrien
2141174294Sobrien	* m4/macros/check_mnttab_style.m4: Use Linux-specific mount table
2142174294Sobrien	handling.
2143174294Sobrien
2144174294Sobrien2005-06-24  Erez Zadok  <ezk@cs.sunysb.edu>
2145174294Sobrien
2146174294Sobrien	* conf/mount/mount_aix.c (mount_aix3): minor cleanup of filehandle
2147174294Sobrien	copying code.
2148174294Sobrien
2149174294Sobrien2005-06-23  Erez Zadok  <ezk@cs.sunysb.edu>
2150174294Sobrien
2151174294Sobrien	* conf/nfs_prot/nfs_prot_hpux.h: add extern for h_errno, which may
2152174294Sobrien	be missing from older hpux10 systems.
2153174294Sobrien
2154174294Sobrien	* configure.in: update bug-reporting address to list
2155174294Sobrien	https://bugzilla.am-utils.org/ as well as the mailing list.
2156174294Sobrien
2157174294Sobrien	* Makefile.am (EXTRA_DIST_M4): distribute new type_rpcvers_t.m4
2158174294Sobrien	macro.
2159174294Sobrien
2160174294Sobrien	* conf/transp/transp_tli.c (get_nfs_version): always use
2161174294Sobrien	rpcvers_t, now that it'll be automatically discovered.
2162174294Sobrien
2163174294Sobrien	* configure.in: check for rpcvers_t type.
2164174294Sobrien
2165174294Sobrien	* m4/macros/type_rpcvers_t.m4: new macro to check for type of
2166174294Sobrien	rpcvers_t (Some Solaris versions need it).
2167174294Sobrien
2168174294Sobrien	* conf/nfs_prot/nfs_prot_sunos5_8.h: don't define INADDR_NONE
2169174294Sobrien	here, but in the actual source files that may need it.
2170174294Sobrien
2171174294Sobrien	* libamu/wire.c (INADDR_NONE): define INADDR_NONE if not defined
2172174294Sobrien	already.
2173174294Sobrien
2174174294Sobrien	* include/am_defs.h: define extern for sleep(3) if needed.
2175174294Sobrien
2176174294Sobrien	* m4/macros/header_templates.m4: template for sleep(3) extern.
2177174294Sobrien
2178174294Sobrien	* configure.in: check for extern for sleep(3), which is missing
2179174294Sobrien	from some old (and buggy) versions of gcc's fixinc'ed headers.
2180174294Sobrien
2181174294Sobrien	* conf/nfs_prot/nfs_prot_aix4_3.h: update definition of struct
2182174294Sobrien	nfs_args from actual system headers.
2183174294Sobrien
2184174294Sobrien	* conf/mount/mount_aix.c (mount_aix3): fix name of aix4 "bis"
2185174294Sobrien	structure.
2186174294Sobrien
2187174294Sobrien2005-06-22  Erez Zadok  <ezk@cs.sunysb.edu>
2188174294Sobrien
2189174294Sobrien	* BUGS: update Solaris information about use of f/lex and
2190174294Sobrien	yacc/bison.
2191174294Sobrien
2192174294Sobrien2005-06-20  Erez Zadok  <ezk@cs.sunysb.edu>
2193174294Sobrien
2194174294Sobrien	* minor new port: i386-pc-linux-suse9.3.
2195174294Sobrien
2196174294Sobrien2005-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2197174294Sobrien
2198174294Sobrien	* configure.in (linux/nfs_mount.h): Move __KERNEL__ definition up
2199174294Sobrien	so u32 is available for <linux/sunrpc/msg_prot.h>.
2200174294Sobrien
2201174294Sobrien2005-06-16  Erez Zadok  <ezk@cs.sunysb.edu>
2202174294Sobrien
2203174294Sobrien	* amd/mapc.c (maptypes): move MAP_EXEC after MAP_FILE, because
2204174294Sobrien	exec maps will always match when users use amd with command line
2205174294Sobrien	args (not amd.conf).  Using that legacy way, unfortunately, means
2206174294Sobrien	that Amd will use it's hard-coded info-service search path, which
2207174294Sobrien	doesn't work for everyone.  It's much better to use amd.conf and
2208174294Sobrien	specify what you want exactly.
2209174294Sobrien
2210174294Sobrien2005-06-15  Erez Zadok  <ezk@cs.sunysb.edu>
2211174294Sobrien
2212174294Sobrien	* minor new port: i386-pc-linux-fc4 (gcc4 catches more bugs).
2213174294Sobrien
2214174294Sobrien	* m4/macros/type_recvfrom_fromlen.m4: linux systems use unsigned
2215174294Sobrien	int as the type of recvfrom()'s 6th argument.
2216174294Sobrien
2217174294Sobrien	* m4/macros/type_yp_order_outorder.m4: linux systems use unsigned
2218174294Sobrien	int as the type of yp_order()'s 3rd argument.
2219174294Sobrien
2220174294Sobrien2005-06-15  Erez Zadok  <ezk@cs.sunysb.edu>
2221174294Sobrien
2222174294Sobrien	* scripts/amd.conf-sample (map_type): typo, said mount_type
2223174294Sobrien	instead of map_type for the 'exec' example.
2224174294Sobrien
2225174294Sobrien2005-06-11  Erez Zadok  <ezk@cs.sunysb.edu>
2226174294Sobrien
2227174294Sobrien	*******************************************************************
2228174294Sobrien	*** Released am-utils-6.1					***
2229174294Sobrien	*******************************************************************
2230174294Sobrien
2231174294Sobrien2005-06-04  Erez Zadok  <ezk@cs.sunysb.edu>
2232174294Sobrien
2233174294Sobrien	* amd/ops_nfs.c (mount_nfs_fh): set timeo/retrans mount options
2234174294Sobrien	only if the user specified them in amd.conf or elsewhere.  If they
2235174294Sobrien	were not specified, don't do anything, which would let the OS use
2236174294Sobrien	its own defaults.
2237174294Sobrien
2238174294Sobrien	* amd/get_args.c (get_args): negative timeo/retrans are "good" in
2239174294Sobrien	that they represent uninitialized values (meaning to let the OS
2240174294Sobrien	use it's default values).  So only check if user specified a value
2241174294Sobrien	equal to zero (invalid).
2242174294Sobrien
2243174294Sobrien	* amd/amd.h: define AMU_TYPE_NONE so we know when users didn't
2244174294Sobrien	specify timeo/retrans at all.
2245174294Sobrien
2246174294Sobrien2005-06-03  Erez Zadok  <ezk@cs.sunysb.edu>
2247174294Sobrien
2248174294Sobrien	*******************************************************************
2249174294Sobrien	*** Released am-utils-6.1-rc7					***
2250174294Sobrien	*******************************************************************
2251174294Sobrien
2252174294Sobrien	* m4/macros/os_cflags.m4 (CFLAGS): use custom-OS C flags for
2253174294Sobrien	configuring, not just for building.  That way the two phases
2254174294Sobrien	(configure and compile) are in sync.  This fixes getwire() on
2255174294Sobrien	OSF/1 systems.
2256174294Sobrien
2257174294Sobrien	* conf/nfs_prot/nfs_prot_sunos5_8.h: define INADDR_NONE if not
2258174294Sobrien	defined in system headers.
2259174294Sobrien
2260174294Sobrien2005-06-01  Erez Zadok  <ezk@cs.sunysb.edu>
2261174294Sobrien
2262174294Sobrien	* libamu/Makefile.am (EXTRA_DIST): remove alloca.c as it's no
2263174294Sobrien	longer needed.
2264174294Sobrien
2265174294Sobrien2005-05-28  Erez Zadok  <ezk@cs.sunysb.edu>
2266174294Sobrien
2267174294Sobrien	* completed set of fixes for irix6.5.
2268174294Sobrien
2269174294Sobrien	* Minor new ports alpha-unknown-linux-gentoo1.4.16
2270174294Sobrien	alphaev56-dec-osf4.0f, mips-unknown-linux-gentoo1.4.16, and
2271174294Sobrien	sparc64-unknown-linux-gentoo1.4.16, and mips-sgi-irix6.5.  Test
2272174294Sobrien	those systems with both cc and gcc, where possible.
2273174294Sobrien
2274174294Sobrien	* include/am_xdr_func.h: remove trailing comma at end of enum
2275174294Sobrien	list.
2276174294Sobrien
2277174294Sobrien	* m4/macros/os_cflags.m4: with gcc 3.4.3 on irix-6.5, we get pte_t
2278174294Sobrien	undefined.  So give it a dummy value.
2279174294Sobrien
2280174294Sobrien	* libamu/alloca.c: remove file from distro.
2281174294Sobrien
2282174294Sobrien	* configure.in: don't call AC_FUNC_ALLOCA any more.
2283174294Sobrien
2284174294Sobrien	* include/am_defs.h: remove header fixups for <alloca.h>, now that
2285174294Sobrien	we don't need it.
2286174294Sobrien
2287174294Sobrien	* amd/amq_svc.c (amqsvc_is_client_allowed): rewrite function to
2288174294Sobrien	avoid only use of alloca() in am-utils, and to use strdup
2289174294Sobrien	explicitly.  This way we can avoid using alloca, a feature that's
2290174294Sobrien	not portable on various systems.
2291174294Sobrien
2292174294Sobrien	* amq/amq.c: remove unused lint/rcsid cruft.
2293174294Sobrien
2294174294Sobrien2005-05-27  Erez Zadok  <ezk@cs.sunysb.edu>
2295174294Sobrien
2296174294Sobrien	* conf/checkmount/checkmount_osf.c (fixmount_check_mount): add
2297174294Sobrien	extra parentheses around assignments in "if" expressions (gcc
2298174294Sobrien	complains).
2299174294Sobrien
2300174294Sobrien	* conf/nfs_prot/nfs_prot_osf4.h: add missing extern definitions
2301174294Sobrien	for plock, hstrerror, getmntinfo, alloca, xdr_exportnode, and
2302174294Sobrien	xdr_groups.
2303174294Sobrien
2304174294Sobrien	* configure.in: check for <linux/socket.h>, which, if found,
2305174294Sobrien	appears to be preferable to <sys/socket.h>.  Use it to find
2306174294Sobrien	<linux/nfs_mount.h>.  On some Linux systems
2307174294Sobrien	(Gentoo), both exist but only one must be included, or else you
2308174294Sobrien	get redefined structure errors.
2309174294Sobrien
2310174294Sobrien	* libamu/wire.c (is_network_member): check if masknum is
2311174294Sobrien	INADDR_NONE, not "< 0" because it's an unsigned quantity.
2312174294Sobrien
2313174294Sobrien	* libamu/util.c (xstrlcpy): remove useless test for size_t < 0,
2314174294Sobrien	because it's an unsigned quantity.
2315174294Sobrien
2316174294Sobrien2005-05-26  Erez Zadok  <ezk@cs.sunysb.edu>
2317174294Sobrien
2318174294Sobrien	*******************************************************************
2319174294Sobrien	*** Released am-utils-6.1-rc6					***
2320174294Sobrien	*******************************************************************
2321174294Sobrien
2322174294Sobrien2005-05-25  Erez Zadok  <ezk@cs.sunysb.edu>
2323174294Sobrien
2324174294Sobrien	* conf/nfs_prot/nfs_prot_aix5_2.h: AIX 5.3 complains about
2325174294Sobrien	missing definition of struct thread_credentials in <sys/vfs.h>
2326174294Sobrien	but trying to bring that definition in drags a whole lot of other
2327174294Sobrien	messy stuff.  So just provide a dummy definition for this
2328174294Sobrien	structure.
2329174294Sobrien
2330174294Sobrien2005-05-24  Erez Zadok  <ezk@cs.sunysb.edu>
2331174294Sobrien
2332174294Sobrien	* Makefile.am (EXTRA_DIST_M4): distribute m4/macros/libtool.m4.
2333174294Sobrien
2334174294Sobrien	* m4/macros/header_templates.m4: template for HAVE_EXTERN_MNTCTL.
2335174294Sobrien
2336174294Sobrien	* m4/macros/check_extern.m4: include <sys/vmount.h> on AIX
2337174294Sobrien	systems, so we can find extern definition for mntctl().
2338174294Sobrien
2339174294Sobrien	* conf/mtab/mtab_aix.c, conf/checkmount/checkmount_aix.c: only
2340174294Sobrien	define an extern for mntctl() if needed.
2341174294Sobrien
2342174294Sobrien	* amd/ops_nfs.c (prime_nfs_fhandle_cache): never, ever, use C++
2343174294Sobrien	style comments in C code.  Some C compilers don't accept it.
2344174294Sobrien
2345174294Sobrien	* amd/info_ldap.c (amu_ldap_init, get_ldap_timestamp): force cast
2346174294Sobrien	of "time_t *ts" to u_long, to avoid complaints on AIX 5.2 with
2347174294Sobrien	xlC.
2348174294Sobrien
2349174294Sobrien	* amd/get_args.c: rename symbol conf_file to amu_conf_file to
2350174294Sobrien	avoid conflict with libldap.a from openldap-2.0.21 on AIX 5.2.
2351174294Sobrien	Oh, when will people who develop libraries learn to always prefix
2352174294Sobrien	their exported symbols with a library-specific name?
2353174294Sobrien
2354174294Sobrien	* configure.in: check for mntctl() extern on AIX systems.
2355174294Sobrien
2356174294Sobrien	* ltmain.sh: update from latest libtool-1.5.18, so we can properly
2357174294Sobrien	build on AIX 5.2/5.3 with cc and with gcc.
2358174294Sobrien
2359174294Sobrien	* m4/macros/libtool.m4: update from latest libtool-1.5.18.  This
2360174294Sobrien	time, and from now on, we must include libtool.m4 from the libtool
2361174294Sobrien	distribution itself.  That way we ensure that we use an ltmain.sh
2362174294Sobrien	that matches the appropriate libtool M4 macros.  This makes
2363174294Sobrien	am-utils no longer dependent on having libtool installed on a
2364174294Sobrien	given system on which you run bootstrap.
2365174294Sobrien
2366174294Sobrien2005-05-23  Erez Zadok  <ezk@cs.sunysb.edu>
2367174294Sobrien
2368174294Sobrien	* minor new port: i386-pc-linux-deb3.0.
2369174294Sobrien
2370174294Sobrien2005-05-22  Erez Zadok  <ezk@cs.sunysb.edu>
2371174294Sobrien
2372174294Sobrien	* minor new ports: i386-unknown-netbsdelf2.0.2 and
2373174294Sobrien	i386-unknown-openbsd3.7.
2374174294Sobrien
2375174294Sobrien2005-05-20  Erez Zadok  <ezk@cs.sunysb.edu>
2376174294Sobrien
2377174294Sobrien	* minor new ports: i386-pc-linux-gentoo1.4.16 and
2378174294Sobrien	powerpc-unknown-linux-yellowdog2.3.
2379174294Sobrien
2380174294Sobrien	* include/{mount_headers2.h, am_defs.h}: safer setup before
2381174294Sobrien	inclusion of <linux/nfs_mount.h>, which is broken on several
2382174294Sobrien	systems.
2383174294Sobrien
2384174294Sobrien	* configure.in: test for <linux/nfs2.h>.  Separate special test
2385174294Sobrien	for <linux/nfs_mount.h> because we need to define __KERNEL__ for
2386174294Sobrien	that test, as well as optionally define struct nfs2_fh for some
2387174294Sobrien	systems (gentoo with 2.4 kernel, yellowdog 2.3, and others).
2388174294Sobrien
2389174294Sobrien	* config.guess.long: support Gentoo and Yellow Dog Linux distros.
2390174294Sobrien
2391174294Sobrien2005-05-18  Erez Zadok  <ezk@cs.sunysb.edu>
2392174294Sobrien
2393174294Sobrien	* minor new ports: i386-pc-linux-suse9.2 and
2394174294Sobrien	i386-unknown-freebsd5.4.
2395174294Sobrien
2396174294Sobrien	* amd/nfs_subr.c: use NFS_FHSIZE, not FHSIZE.
2397174294Sobrien
2398174294Sobrien2005-05-17  Erez Zadok  <ezk@cs.sunysb.edu>
2399174294Sobrien
2400174294Sobrien	*******************************************************************
2401174294Sobrien	*** Released am-utils-6.1-rc5					***
2402174294Sobrien	*******************************************************************
2403174294Sobrien
2404174294Sobrien	* amd/info_ldap.c (amu_ldap_init): change plog to dlog, to avoid
2405174294Sobrien	sending annoying warning for a minor issue.
2406174294Sobrien
2407174294Sobrien2005-05-17  Ion Badulescu <ionut@moisil.badula.org>
2408174294Sobrien
2409174294Sobrien	* amd/nfs_subr.c: check for NULL pointer before dereferencing it.
2410174294Sobrien
2411174294Sobrien2005-05-16  Erez Zadok  <ezk@cs.sunysb.edu>
2412174294Sobrien
2413174294Sobrien	* minor new ports: powerpc-apple-darwin7.9.0.
2414174294Sobrien
2415174294Sobrien	* m4/macros/host_macros.m4: if a NetBSD system, remove 'elf' part
2416174294Sobrien	from OS name because it's no longer relevant.  Also, don't include
2417174294Sobrien	the major OS version number in the OS name because that's also
2418174294Sobrien	unnecessary (and users can always use $osver in maps).
2419174294Sobrien
2420174294Sobrien	* amd/nfs_subr.c: use [1] for out-of-band pointer at the end of
2421174294Sobrien	struct am_fh, because it's the most portable method.  Bug fix
2422174294Sobrien	suggestion from Dan Riley <dsr at mail.lns.cornell.edu>.  Better
2423174294Sobrien	fix from Ion Badulescu: use [FHSIZE-sizeof(u_int)] which is the
2424174294Sobrien	actual size we use.
2425174294Sobrien
2426174294Sobrien	* amd/amfs_generic.c (amfs_lookup_mntfs): reset currently used
2427174294Sobrien	def_opts to options given in -opts, appended with the /default
2428174294Sobrien	options.  Bug fix suggestion from Dan Riley <dsr at
2429174294Sobrien	mail.lns.cornell.edu>.
2430174294Sobrien
2431174294Sobrien2005-05-13  Erez Zadok  <ezk@cs.sunysb.edu>
2432174294Sobrien
2433174294Sobrien	*******************************************************************
2434174294Sobrien	*** Released am-utils-6.1-rc4					***
2435174294Sobrien	*******************************************************************
2436174294Sobrien
2437174294Sobrien2005-05-11  Daniel P. Ottavio  <dottavio@ic.sunysb.edu>
2438174294Sobrien
2439174294Sobrien	* amd/amd.c (main) : fixed memory leak detected by valgrind
2440174294Sobrien
2441174294Sobrien	* amd/info_ldap.c (amu_ldap_init) : fixed memory leak detected by
2442174294Sobrien	valgrind
2443174294Sobrien
2444174294Sobrien2005-05-11  Erez Zadok  <ezk@cs.sunysb.edu>
2445174294Sobrien
2446174294Sobrien	* m4/macros/{check_checkmount_style.m4, check_mnttab_style.m4,
2447174294Sobrien	check_nfs_fh_dref.m4, check_nfs_prot_headers.m4,
2448174294Sobrien	check_nfs_sa_dref.m4, check_umount_style.m4, os_cflags.m4}: check
2449174294Sobrien	for "macosx" as valid OS string, so we compile properly on Darwin
2450174294Sobrien	systems.
2451174294Sobrien
2452174294Sobrien	*******************************************************************
2453174294Sobrien	*** Released am-utils-6.1-rc3					***
2454174294Sobrien	*******************************************************************
2455174294Sobrien
2456174294Sobrien	* rerun bootstrap to get a working configure script that actually
2457174294Sobrien	checks for limits.h and dependent linux autofs/nfs headers.
2458174294Sobrien
2459174294Sobrien	* configure.in: remove redundant check for limits.h.
2460174294Sobrien
2461174294Sobrien2005-05-09  Erez Zadok  <ezk@cs.sunysb.edu>
2462174294Sobrien
2463174294Sobrien	*******************************************************************
2464174294Sobrien	*** Released am-utils-6.1-rc2					***
2465174294Sobrien	*******************************************************************
2466174294Sobrien
2467174294Sobrien2005-05-08  Erez Zadok  <ezk@cs.sunysb.edu>
2468174294Sobrien
2469174294Sobrien	* amd/amfs_generic.c (amfs_lookup_mntfs): removed redundant use of
2470174294Sobrien	old_def_opts variable.
2471174294Sobrien
2472174294Sobrien2005-05-08  Daniel P. Ottavio  <dottavio@ic.sunysb.edu>
2473174294Sobrien
2474174294Sobrien	* amd/amfs_generic.c (amfs_lookup_mntfs) : Make sure when a map
2475174294Sobrien	entry has a single dash '-', that the default options are reset.
2476174294Sobrien	This functionality was somehow lost from earlier releases and
2477174294Sobrien	reported by Dan Riley <dsr@mail.lns.cornell.edu>.
2478174294Sobrien
2479174294Sobrien2005-05-05  Erez Zadok  <ezk@cs.sunysb.edu>
2480174294Sobrien
2481174294Sobrien	* config.guess.long: detect SuSE Enterprise Server and call it
2482174294Sobrien	"sles" not "suse".
2483174294Sobrien
2484174294Sobrien2005-05-02  Erez Zadok  <ezk@cs.sunysb.edu>
2485174294Sobrien
2486174294Sobrien	* doc/am-utils.texi (amd): document proper use of
2487174294Sobrien	/etc/hosts.allow.  Don't spawn a new Amd process because Amd will
2488174294Sobrien	get confused if someone else waitpid's on its children (which
2489174294Sobrien	often do important un/mount work).  Issue reported by Francis
2490174294Sobrien	Montagnac <Francis.Montagnac at sophia.inria.fr>.
2491174294Sobrien
2492174294Sobrien	* minor new ports: powerpc64-unknown-linux-rhel4, and
2493174294Sobrien	powerpc64-unknown-linux-sles9.
2494174294Sobrien
2495174294Sobrien2005-05-01  Daniel P. Ottavio  <dottavio@ic.sunysb.edu>
2496174294Sobrien
2497174294Sobrien	* amd/amfs_host.c (amfs_host_umount): We do not want to pass
2498174294Sobrien	ENOENT as an error because if the directory does not exists our
2499174294Sobrien	work is done anyway.
2500174294Sobrien
2501174294Sobrien	* conf/umount/umount_linux.c (umount_fs): If we are successful or
2502174294Sobrien	there was an ENOENT, remove the mount entry from the mtab file.
2503174294Sobrien
2504174294Sobrien2005-05-01  Ion Badulescu  <ionut@moisil.badula.org>
2505174294Sobrien
2506174294Sobrien	* amd/nfs_subr.c: am_fh definition moved here from amd.h;
2507174294Sobrien	restructured to better reflect its duality (old/new filehandles)
2508174294Sobrien	(fh_to_mp3): fhh_gen is always used, even for new style f/h
2509174294Sobrien	(mp_to_fh): ditto
2510174294Sobrien
2511174294Sobrien	* amd/amd.h: moved am_fh definition to nfs_subr.c (which is the
2512174294Sobrien	only place where it's used)
2513174294Sobrien
2514174294Sobrien2005-04-30  Erez Zadok  <ezk@cs.sunysb.edu>
2515174294Sobrien
2516174294Sobrien	* m4/macros/host_macros.m4: use sw_vers on Apple machines to find
2517174294Sobrien	out more appropriate OS name (macosx) and OS version (10.3.x) than
2518174294Sobrien	uname(3) reports.
2519174294Sobrien
2520174294Sobrien2005-04-29  Erez Zadok  <ezk@cs.sunysb.edu>
2521174294Sobrien
2522174294Sobrien	* config.guess, config.sub, doc/texinfo.tex: updates from latest
2523174294Sobrien	official GNU distributions.
2524174294Sobrien
2525174294Sobrien	* m4/macros/host_macros.m4: for macosx, change architecture value
2526174294Sobrien	from "Power Macintosh" to "powerpc".
2527174294Sobrien
2528174294Sobrien	* libamu/util.c (xstrlcpy): format 'len' parameter as u_long, not
2529174294Sobrien	int (it's a size_t).
2530174294Sobrien
2531174294Sobrien2005-04-16  Erez Zadok  <ezk@cs.sunysb.edu>
2532174294Sobrien
2533174294Sobrien	* scripts/amd.conf.5, doc/am-utils.texi (normalize_slashes
2534174294Sobrien	Parameter), scripts/amd.conf-sample: document new
2535174294Sobrien	normalize_slashes global configuration parameter.
2536174294Sobrien
2537174294Sobrien	* amd/opts.c (deslashify, normalize_slash): don't touch trailing
2538174294Sobrien	slashes, even if multiples of them, if user said
2539174294Sobrien	normalize_slashes=no in amd.conf.
2540174294Sobrien
2541174294Sobrien	* amd/conf.c (gopt_normalize_slashes): new function to record if
2542174294Sobrien	to normalize slashes or not.
2543174294Sobrien
2544174294Sobrien	* amd/amd.h (CFM_NORMALIZE_SLASHES): new flag to decide if to
2545174294Sobrien	normalize double-slashes or not ("yes" by default).
2546174294Sobrien
2547174294Sobrien	* amd/autil.c (am_mounted): pass TRUE when calling mf_mounted.
2548174294Sobrien	This is the parent mntfs which does the mf->mf_fo
2549174294Sobrien	(am_opts type), and we're passing TRUE here to tell mf_mounted to
2550174294Sobrien	actually free the am_opts.
2551174294Sobrien
2552174294Sobrien	* amd/autil.c (mf_mounted): Be careful when calling free_ops and
2553174294Sobrien	XFREE here.  Some pseudo file systems like nfsx call this
2554174294Sobrien	function, even though it would be called by the lower-level amd
2555174294Sobrien	file system functions.  nfsx needs to call this function because
2556174294Sobrien	of the other actions it takes.  So we pass a boolean from the
2557174294Sobrien	caller (yes, not so clean workaround) to determine if we should
2558174294Sobrien	free or not.  If we're not freeing (often because we're called
2559174294Sobrien	from a callback function), then just to be sure, we'll zero out
2560174294Sobrien	the am_opts structure and set the pointer to NULL.  The parent
2561174294Sobrien	mntfs node owns this memory and is going to free it with a call to
2562174294Sobrien	mf_mounted(mntfs,TRUE).
2563174294Sobrien
2564174294Sobrien	* amd/amd.h: pass flag to mf_mounted, to free or not to free the
2565174294Sobrien	am_opts.
2566174294Sobrien
2567174294Sobrien	* amd/amfs_nfsx.c (amfs_nfsx_cont): call mf_mounted with FALSE to
2568174294Sobrien	tell it not to free the am_opts, to avoid double free.
2569174294Sobrien
2570174294Sobrien	* include/am_defs.h: include limits.h if found.
2571174294Sobrien
2572174294Sobrien	* configure.in: check for limits.h.  Check for certain Linux
2573174294Sobrien	headers such as auto_fs.h after checking for limits.h, and include
2574174294Sobrien	the latter if it exists, because some Linux headers depend on
2575174294Sobrien	limits.h.  This prevents warnings during configure time.
2576174294Sobrien
2577174294Sobrien2005-04-12  Erez Zadok  <ezk@cs.sunysb.edu>
2578174294Sobrien
2579174294Sobrien	* amd/amfs_toplvl.c (amfs_toplvl_mount): do NOT set retrans/timeo
2580174294Sobrien	values from default global UDP settings, because it can cause
2581174294Sobrien	unexpected timeouts in Amd on slow systems.  The default that each
2582174294Sobrien	OS provides for these toplvl NFS mounts should be OK, or else you
2583174294Sobrien	can use the map_options entry.
2584174294Sobrien
2585174294Sobrien2005-04-09  Daniel P. Ottavio  <dottavio@ic.sunysb.edu>
2586174294Sobrien
2587174294Sobrien	* amd/nfs_subr.c (mp_to_fh): Replace xstrlcpy with memcpy because the
2588174294Sobrien	source buffer is treated more as a filehandle than a string.
2589174294Sobrien
2590174294Sobrien	* amd/nfs_subr.c (fh_to_mp3): Replace xstrlcpy with memcpy because the
2591174294Sobrien	source buffer is treated more as a filehandle than a string.
2592174294Sobrien
2593174294Sobrien	* amd/opts.c (free_op): No longer need to assign pointer to NULL
2594174294Sobrien	after XFREE.
2595174294Sobrien
2596174294Sobrien	* amd/opts.c (expand_op): Revert back to using strncpy() instead
2597174294Sobrien	of xstrlcpy.  The code is correct and relies on the semantics of
2598174294Sobrien	strncpy.
2599174294Sobrien
2600174294Sobrien	* libamu/mount_fs.c (compute_nfs_args): Leave XXX warning that use
2601174294Sobrien	of xstrlcpy in NFS_HN_DREF may corrupt a struct nfs_args, or
2602174294Sobrien	truncate our concocted "hostname:/path" string prematurely if the
2603174294Sobrien	nap->hostname field is ever less than 64 bytes long
2604174294Sobrien	(MAXHOSTNAMELEN).
2605174294Sobrien
2606174294Sobrien	* libamu/util.c (xstrlcpy): Return immediately if len is 0 to
2607174294Sobrien	avoid unnecessary work.  Log an error and return if len is less
2608174294Sobrien	than 0.
2609174294Sobrien
2610174294Sobrien2005-04-07  Erez Zadok  <ezk@cs.sunysb.edu>
2611174294Sobrien
2612174294Sobrien	* include/am_utils.h (XFREE): XFREE() should nullify the pointer
2613174294Sobrien	even when compiling without debugging.  It's safer this way.
2614174294Sobrien
2615174294Sobrien	* libamu/xutil.c (am_set_hostname),
2616174294Sobrien	hlfsd/stubs.c (nfsproc_lookup_2_svc),
2617174294Sobrien	fsinfo/fsinfo.c (fsi_get_args),
2618174294Sobrien	fixmount/fixmount.c (is_same_host, remove_mount, main),
2619174294Sobrien	conf/mtab/mtab_isc3.c (mnt_dup, mtab_of),
2620174294Sobrien	conf/mount/mount_svr4.c (mount_svr4),
2621174294Sobrien	conf/mount/mount_linux.c (setup_loop_device),
2622174294Sobrien	conf/hn_dref/hn_dref_linux.h (NFS_HN_DREF),
2623174294Sobrien	conf/hn_dref/hn_dref_isc3.h (NFS_HN_DREF),
2624174294Sobrien	amd/opts.c (expand_op),
2625174294Sobrien	amd/ops_nfs.c (mount_nfs_fh),
2626174294Sobrien	amd/nfs_subr.c (fh_to_mp3, mp_to_fh),
2627174294Sobrien	amd/amfs_host.c (amfs_host_mount),
2628174294Sobrien	amd/am_ops.c (merge_opts):
2629174294Sobrien	use the new xstrlcpy instead of strncpy.
2630174294Sobrien
2631174294Sobrien	* conf/checkmount/checkmount_{default,svr4}.c
2632174294Sobrien	(fixmount_check_mount): document why NOT to use xstrlcpy.
2633174294Sobrien
2634174294Sobrien	* libamu/xutil.c: am_hostname need not be MAXHOSTNAMELEN+1 any
2635174294Sobrien	more, just MAXHOSTNAMELEN.
2636174294Sobrien
2637174294Sobrien	* libamu/xutil.c (real_plog): use strlcpy (not xstrlcpy to avoid
2638174294Sobrien	recursion, since xstrlcpy may use plog).
2639174294Sobrien
2640174294Sobrien	* libamu/util.c (xstrlcpy): truncating a string is serious.  Use
2641174294Sobrien	XLOG_ERROR not XLOG_WARNING.
2642174294Sobrien
2643174294Sobrien2005-04-06  Erez Zadok  <ezk@cs.sunysb.edu>
2644174294Sobrien
2645174294Sobrien	* include/am_utils.h: external definition for new xstrlcpy
2646174294Sobrien	function.
2647174294Sobrien
2648174294Sobrien	* libamu/util.c (xstrlcpy): new function.  Similar to strncpy, but
2649174294Sobrien	uses strlcpy to guarantee that the resulting string is null
2650174294Sobrien	terminated, and also warn if the resulting string was truncated.
2651174294Sobrien
2652174294Sobrien	* libamu/xutil.c (get_server_pid): move this function from util.c
2653174294Sobrien	which is for general-purpose utilities.
2654174294Sobrien
2655174294Sobrien	* m4/macros/header_templates.m4: template for HAVE_EXTERN_STRLCPY.
2656174294Sobrien
2657174294Sobrien	* include/am_defs.h: provide extern definition for strlcpy, if
2658174294Sobrien	needed.
2659174294Sobrien
2660174294Sobrien	* libamu/Makefile.am (EXTRA_DIST): include strlcpy.c in distro.
2661174294Sobrien
2662174294Sobrien	* configure.in: search for strlcpy and its extern.
2663174294Sobrien
2664174294Sobrien	* amq/pawd.c (find_mt): It only handles *some* filesystem types,
2665174294Sobrien	so it breaks on direct xfs mounts for example.  The fix (from
2666174294Sobrien	Christos Zoulas) is simple: We need to exclude toplvl to avoid
2667174294Sobrien	infinite recursion, but all other fs's are game.
2668174294Sobrien
2669174294Sobrien2005-03-31  Erez Zadok  <ezk@cs.sunysb.edu>
2670174294Sobrien
2671174294Sobrien	* amd/nfs_subr.c (fh_to_mp3): strncpy may not null terminate if
2672174294Sobrien	copying exactly len bytes, so add null just to be safe.
2673174294Sobrien
2674174294Sobrien2005-03-30  Daniel P. Ottavio  <dottavio@ic.sunysb.edu>
2675174294Sobrien
2676174294Sobrien	* amd/nfs_subr.c (fh_to_mp3): Increased the n of strncpy()
2677174294Sobrien	to make sure it null terminates.
2678174294Sobrien
2679174294Sobrien2005-03-29  Daniel P. Ottavio  <dottavio@ic.sunysb.edu>
2680174294Sobrien
2681174294Sobrien	* amd/nfs_subr.c (fh_to_mp3): Fix memset bug. In this case
2682174294Sobrien	the memset can be removed because strncpy() should padd the
2683174294Sobrien	buffer with NULLs anyway.
2684174294Sobrien
2685174294Sobrien2005-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2686174294Sobrien
2687174294Sobrien	* include/am_defs.h: Clarify comment.
2688174294Sobrien
2689174294Sobrien2005-03-21  Erez Zadok  <ezk@cs.sunysb.edu>
2690174294Sobrien
2691174294Sobrien	* include/am_defs.h: undefine "GROUP" so Solaris 10 with gcc-2.96
2692174294Sobrien	won't complain about a conflict for this definition between
2693174294Sobrien	<rpcsvc/nis.h> and <sys/acl.h>.
2694174294Sobrien
2695174294Sobrien2005-03-20  Erez Zadok  <ezk@cs.sunysb.edu>
2696174294Sobrien
2697174294Sobrien	* amd/readdir.c (amfs_readdir_browsable): use %p, not %lx.
2698174294Sobrien
2699174294Sobrien	* libamu/mount_fs.c (print_nfs_args): print pointer with %p, not
2700174294Sobrien	%lx.
2701174294Sobrien
2702174294Sobrien2005-03-18  Erez Zadok  <ezk@cs.sunysb.edu>
2703174294Sobrien
2704174294Sobrien	*******************************************************************
2705174294Sobrien	*** Released am-utils-6.1-rc1					***
2706174294Sobrien	*******************************************************************
2707174294Sobrien
2708174294Sobrien2005-03-18  Erez Zadok  <ezk@cs.sunysb.edu>
2709174294Sobrien
2710174294Sobrien	* conf/transp/transp_tli.c (get_nfs_version): use proper type for
2711174294Sobrien	versout on Solaris (rpcvcers_t).
2712174294Sobrien
2713174294Sobrien	* amd/mapc.c (mapc_showtypes): if last map type to print, don't
2714174294Sobrien	append newline or comma to it.
2715174294Sobrien
2716174294Sobrien	* libamu/mount_fs.c (print_nfs_args): cast struct netbuf pointer
2717174294Sobrien	to %lx because on Solaris 10 sparc gcc-3.4.3 complains about
2718174294Sobrien	casting it to an int (size is different).
2719174294Sobrien
2720174294Sobrien	* configure.in, NEWS: prepare for 6.1-rc1 release.
2721174294Sobrien
2722174294Sobrien2005-03-17  Erez Zadok  <ezk@cs.sunysb.edu>
2723174294Sobrien
2724174294Sobrien	* scripts/amd2ldif.in, ldap.schema: fixes by Adam Morley
2725174294Sobrien	<adam-at-gmi-dot-com> to synchronize what amd2ldif does vs. what
2726174294Sobrien	the ldap.schema expects.
2727174294Sobrien
2728174294Sobrien	* amd/map.c (exported_ap_free): We're using a free-list data
2729174294Sobrien	structure and re-using malloc'ed objects.  So, to be safe, memset
2730174294Sobrien	entire structure when it's freed, not just the pointer.
2731174294Sobrien	(umount_exported): bug fix to on-exit code.  Don't run
2732174294Sobrien	am_unmounted() unless unmount_mp() didn't run, since the latter
2733174294Sobrien	already calls am_unmounted().  This way we avoid a double-free
2734174294Sobrien	bug.
2735174294Sobrien
2736174294Sobrien2005-03-15  Erez Zadok  <ezk@cs.sunysb.edu>
2737174294Sobrien
2738174294Sobrien	* tasks: updates.  Executable maps is supported.  NFSv4 and
2739174294Sobrien	FreeBSD autofs isn't.
2740174294Sobrien
2741174294Sobrien	* Makefile.am (EXTRA_DIST): include FAQ in distro.
2742174294Sobrien
2743174294Sobrien	* doc/Makefile.am (alldocs): install README.lda and README.osx.
2744174294Sobrien
2745174294Sobrien	* FAQ: new file, better late than never.
2746174294Sobrien
2747174294Sobrien2005-03-14  Erez Zadok  <ezk@cs.sunysb.edu>
2748174294Sobrien
2749174294Sobrien	* scripts/amd2ldif.in: patch to add the amdMapName attribute to
2750174294Sobrien	the amdMapTimestamp object when amd2ldif converts it.  This is
2751174294Sobrien	necessary if you are using type:=auto mounts and want those
2752174294Sobrien	mountmaps looked up through LDAP.  Patch from Jim Zajkowski
2753174294Sobrien	<jim.zajkowski@gmail.com>.
2754174294Sobrien
2755174294Sobrien2005-03-12  Erez Zadok  <ezk@cs.sunysb.edu>
2756174294Sobrien
2757174294Sobrien	* minor new ports: i386-pc-linux-rhel4.
2758174294Sobrien
2759174294Sobrien	* minor new ports: powerpc-apple-darwin7.8.0.
2760174294Sobrien
2761174294Sobrien2005-03-10  Erez Zadok  <ezk@cs.sunysb.edu>
2762174294Sobrien
2763174294Sobrien	* amd/ops_nfs.c (prime_nfs_fhandle_cache): rearrange code so it's
2764174294Sobrien	cleaner.
2765174294Sobrien
2766174294Sobrien	* ltmain.sh: upgrade from libtool-1.5.6.
2767174294Sobrien
2768174294Sobrien	* m4/macros/check_{fs_mntent,mnttab_type,mount_type}.m4: check for
2769174294Sobrien	Linux 2.6 kernel modules, which have a .ko extension, not .o.  Now
2770174294Sobrien	we can properly detect which file systems exist on Linux 2.6 based
2771174294Sobrien	systems (SLES9, RHEL4, Fedora, etc.).
2772174294Sobrien
2773174294Sobrien2005-03-09  Erez Zadok  <ezk@cs.sunysb.edu>
2774174294Sobrien
2775174294Sobrien	* m4/macros/host_macros.m4: find out what's the OS software
2776174294Sobrien	distribution name, if any.
2777174294Sobrien
2778174294Sobrien	* m4/macros/header_templates.m4: template for DISTRO_NAME.
2779174294Sobrien
2780174294Sobrien	* amd/get_args.c (get_version_string): print again full_os, os,
2781174294Sobrien	osver, and vendor (bug fix).
2782174294Sobrien	(get_version_string): print distribution name, if known (e.g.,
2783174294Sobrien	rh9, suse8, etc.).
2784174294Sobrien
2785174294Sobrien	* amd/mapc.c (mapc_showtypes): wrap around list of supported map.
2786174294Sobrien
2787174294Sobrien2005-03-08  Erez Zadok  <ezk@cs.sunysb.edu>
2788174294Sobrien
2789174294Sobrien	* amd/map.c (umount_exported): when unmounting file systems on
2790174294Sobrien	exit (when amd.conf global unmount_on_exit=yes), use unmount_mp()
2791174294Sobrien	instead of unmount_node() because the latter always unmounts in
2792174294Sobrien	the foreground, whereas the former unmounts in the bg/fg as
2793174294Sobrien	needed.  Unmounting always in the foreground has two problems: (1)
2794174294Sobrien	if the unmount hangs, amd hangs, and (2) for type:=program, the
2795174294Sobrien	unmount script is execve'd(!) thus replacing the main amd process,
2796174294Sobrien	which never gets to finish up, leaving the amd mount points hung.
2797174294Sobrien
2798174294Sobrien	* NEWS: mention new feature of executable maps.
2799174294Sobrien
2800174294Sobrien	* AUTHORS: Acknowledge Erik Kline.
2801174294Sobrien
2802174294Sobrien	* scripts/amd.conf.5: document executable maps and
2803174294Sobrien	exec_map_timeout parameter.
2804174294Sobrien
2805174294Sobrien	* scripts/amd.conf-sample: examples of an executable map and
2806174294Sobrien	exec_map_timeout.
2807174294Sobrien
2808174294Sobrien	* m4/macros/header_templates.m4: template for HAVE_MAP_EXEC.
2809174294Sobrien
2810174294Sobrien	* doc/am-utils.texi: document Executable maps and exec_map_timeout
2811174294Sobrien	parameter.
2812174294Sobrien
2813174294Sobrien	* amd/conf.c (gopt_exec_map_timeout): function to parse
2814174294Sobrien	exec_map_timeout [global] parameter.
2815174294Sobrien
2816174294Sobrien	* amd/amd.h (AMFS_EXEC_MAP_TIMEOUT): define default executable map
2817174294Sobrien	timeout to 10 seconds, and a global placeholder for the
2818174294Sobrien	configurable value.
2819174294Sobrien
2820174294Sobrien	* amd/amd.c (init_global_options): initialize default executable
2821174294Sobrien	map timeout.
2822174294Sobrien
2823174294Sobrien	* amd/Makefile.am (EXTRA_amd_SOURCES): include info_exec.c in
2824174294Sobrien	tarball.
2825174294Sobrien
2826174294Sobrien	* configure.in: enable executable maps.
2827174294Sobrien
2828174294Sobrien	* amd/mapc.c: define executable map functions and behavior.
2829174294Sobrien
2830174294Sobrien	* amd/info_exec.c: executable map implementation from Erik Kline
2831174294Sobrien	<ekline at ekline dot com>, modified, cleaned-up, and fixed.
2832174294Sobrien
2833174294Sobrien2005-03-07  Erez Zadok  <ezk@cs.sunysb.edu>
2834174294Sobrien
2835174294Sobrien	* amd/info_file.c (file_init_or_mtime): consolidate identical
2836174294Sobrien	file_init and file_mtime into one function.
2837174294Sobrien
2838174294Sobrien2005-03-05  Erez Zadok  <ezk@cs.sunysb.edu>
2839174294Sobrien
2840174294Sobrien	* doc/am-utils.texi (Program Filesystem): if umount/unmount are
2841174294Sobrien	not specified, Amd uses "umount ${fs}" by default.
2842174294Sobrien
2843174294Sobrien	* amd/amfs_program.c (amfs_program_match): if neither unmount nor
2844174294Sobrien	umount parameters are specified, use the default userland umount
2845174294Sobrien	program with "umount ${fs}".  This way type:=program doesn't have
2846174294Sobrien	to specify the umount program for basic unmounting actions.
2847174294Sobrien	(amfs_program_init): save unmount program string in mf_private
2848174294Sobrien	only if it's NULL, not based on mf_refc.
2849174294Sobrien
2850174294Sobrien	* configure.in: auto-detect name of userland unmount program.
2851174294Sobrien
2852174294Sobrien	* aux_conf.h.in (UNMOUNT_PROGRAM): macro for default userland
2853174294Sobrien	unmount program.
2854174294Sobrien
2855174294Sobrien	* amd/ops_cachefs.c (cachefs_init): save unmount program string in
2856174294Sobrien	mf_private only if it's NULL, not based on mf_refc.
2857174294Sobrien
2858174294Sobrien	* configure.in: don't "discover" inheritance file system any more,
2859174294Sobrien	since we don't have the .c file for it.
2860174294Sobrien
2861174294Sobrien	* amd/get_args.c (get_version_string): hack to still show that we
2862174294Sobrien	support the inherit file system in output of amd -v.
2863174294Sobrien
2864174294Sobrien2005-03-05  Ion Badulescu  <ionut@moisil.badula.org>
2865174294Sobrien
2866174294Sobrien	* amd/amfs_inherit.c: removed, dead code
2867174294Sobrien
2868174294Sobrien	* amd/Makefile.am,
2869174294Sobrien	amd/am_ops.c,
2870174294Sobrien	amd/amd.h,
2871174294Sobrien	conf/autofs/autofs_linux.h,
2872174294Sobrien	conf/autofs/autofs_solaris_v1.h,
2873174294Sobrien	conf/autofs/autofs_solaris_v2_v3.h,
2874174294Sobrien	m4/macros/header_templates.m4: removed references to amfs_inherit.c
2875174294Sobrien
2876174294Sobrien2005-03-05  Erez Zadok  <ezk@cs.sunysb.edu>
2877174294Sobrien
2878174294Sobrien	* amd/autil.c (am_mounted): completely rewrite the unmount
2879174294Sobrien	no/timeout code to (1) make more sense for odd conditions, and (2)
2880174294Sobrien	allow utimeout=N mount options to override FS_NOTIMEOUT default
2881174294Sobrien	flags for disk-based file systems such as ufs, pcfs, cdfs, etc.
2882174294Sobrien
2883174294Sobrien	* libamu/mount_fs.c (mount_fs): use safer XFREE() not free().
2884174294Sobrien
2885174294Sobrien	* conf/umount/umount_linux.c (umount_fs): strtok is destructive,
2886174294Sobrien	so use strdup'ed string.
2887174294Sobrien
2888174294Sobrien	* conf/mount/mount_linux.c (parse_opts): strtok is destructive, so
2889174294Sobrien	use strdup'ed string.
2890174294Sobrien
2891174294Sobrien2005-03-04  Erez Zadok  <ezk@cs.sunysb.edu>
2892174294Sobrien
2893174294Sobrien	* scripts/amd.conf.5, doc/am-utils.texi (cache_duration
2894174294Sobrien	Parameter): clarify actual behavior: this Parameter affects
2895174294Sobrien	initial mount timeout as well as the linear backoff what happens
2896174294Sobrien	the initial failed EBUSY unmount.
2897174294Sobrien
2898174294Sobrien	* doc/am-utils.texi (opts Option): better explanation of
2899174294Sobrien	utimeout=N mount pseudo-option.
2900174294Sobrien
2901174294Sobrien	* amd/amd.h (AM_TTL, AM_TTL_W): better comments, minor cleanup.
2902174294Sobrien
2903174294Sobrien2005-03-02  Daniel P. Ottavio  <dottavio@ic.sunysb.edu>
2904174294Sobrien
2905174294Sobrien	* AUTHORS: add Dan Ottavio.
2906174294Sobrien
2907174294Sobrien	* scripts/amd.conf.5: document new debug_mtab_file option.
2908174294Sobrien
2909174294Sobrien	* scripts/amd.conf-sample (debug_mtab_file): show example.
2910174294Sobrien
2911174294Sobrien	* doc/am-utils.texi (debug_mtab_file Parameter): document new
2912174294Sobrien	option.
2913174294Sobrien
2914174294Sobrien	* conf/mtab/mtab_{file,mach3}.c (open_locked_mtab): if mtab file
2915174294Sobrien	doesn't exist by the time Amd tries to exist, return a 0 rather
2916174294Sobrien	than hang indefinitely.
2917174294Sobrien
2918174294Sobrien	* amd/conf.c (gopt_debug_mtab_file): new function to parse
2919174294Sobrien	debug_mtab_file option.
2920174294Sobrien
2921174294Sobrien	* amd/amd.h: placeholder for debug_mtab_file string.
2922174294Sobrien	Define default debug_mtab_file to "/tmp/mtab".
2923174294Sobrien
2924174294Sobrien	* NEWS: document new debug_mtab_file option.
2925174294Sobrien
2926174294Sobrien2005-03-02  Erez Zadok  <ezk@cs.sunysb.edu>
2927174294Sobrien
2928174294Sobrien	* conf/transp/transp_{sockets,tli}.c (amu_get_myaddress): when
2929174294Sobrien	users want Amd's NFS service to bind to some arbitrary "localhost"
2930174294Sobrien	address, show which address was actually resolved and bound to.
2931174294Sobrien
2932174294Sobrien2005-03-01  Erez Zadok  <ezk@cs.sunysb.edu>
2933174294Sobrien
2934174294Sobrien	* amd/srvr_nfs.c (start_nfs_pings): move code from elsewhere
2935174294Sobrien	(update_nfs_pingval) that initializes the pinger, as well as turns
2936174294Sobrien	it on/off as needed, and handles changing its value.  This is to
2937174294Sobrien	avoid races and other infinite-loop conditions that could result
2938174294Sobrien	in ping storms.
2939174294Sobrien
2940174294Sobrien	* amd/srvr_amfs_auto.c (amfs_generic_find_srvr): when creating a
2941174294Sobrien	new file server structure, default the ping value to AM_PINGER
2942174294Sobrien	(30sec) and set the FSF_PING_UNINIT flag.
2943174294Sobrien
2944174294Sobrien	* amd/amd.h (FSF_PING_UNINIT): new flag to tell whether the NFS
2945174294Sobrien	pinger had been initialized for a given file server.
2946174294Sobrien
2947174294Sobrien	* scripts/ctl-amd.in (stop): no need to check if
2948174294Sobrien	/var/lock/subsys/amd file exists if you do an rm -f afterward.
2949174294Sobrien	Ensure that proper return value is returned from script.
2950174294Sobrien
2951174294Sobrien	* NEWS, doc/am-utils.texi (opts Option): update meaning of ping=N
2952174294Sobrien	so that if N=-1, pings are off; if N=0, pings are set to the
2953174294Sobrien	default value (currently 30 seconds).
2954174294Sobrien
2955174294Sobrien2005-02-28  Erez Zadok  <ezk@cs.sunysb.edu>
2956174294Sobrien
2957174294Sobrien	* amd/nfs_prot_svc.c (nfs_program_2): on TLI system, try to call
2958174294Sobrien	__rpc_get_local_uid to verify if the RPC call through the
2959174294Sobrien	local host interface came from UID 0.
2960174294Sobrien
2961174294Sobrien	* configure.in: look for internal libnsl function
2962174294Sobrien	__rpc_get_local_uid (seems to be available on all known TLI
2963174294Sobrien	systems, Solaris and HP-UX 11).
2964174294Sobrien
2965174294Sobrien	* conf/transp/transp_tli.c (amu_svc_getcaller): unnecessary
2966174294Sobrien	function for TLI systems (and it violated a array's bounds,
2967174294Sobrien	discovered with libumem.so).
2968174294Sobrien	(bind_resv_port, bind_resv_port_only_udp, get_autofs_address):
2969174294Sobrien	just to be on the safe side, set struct t_bind's qlen field to non
2970174294Sobrien	zero (64 by default).  This value cannot be zero for TCP
2971174294Sobrien	connections, and it's unclear if it's good to have it zero for UDP
2972174294Sobrien	connections, so setting it to 64 is safer.
2973174294Sobrien
2974174294Sobrien2005-02-27  Erez Zadok  <ezk@cs.sunysb.edu>
2975174294Sobrien
2976174294Sobrien	* doc/am-utils.texi (opts Option, Keep-alives): update text on
2977174294Sobrien	ping option.
2978174294Sobrien
2979174294Sobrien	* amd/srvr_nfs.c (update_nfs_pingval): new function to update NFS
2980174294Sobrien	server ping values, turn them off, or re-enable them.
2981174294Sobrien	(find_nfs_srvr): call update_nfs_pingval() as needed.
2982174294Sobrien
2983174294Sobrien	* hlfsd/hlfsd.c (reaper, cleanup): don't use exit(3) in a signal
2984174294Sobrien	handler, but use _exit(2) instead.
2985174294Sobrien
2986174294Sobrien	* amd/amd.c (parent_exit): This signal handler is called during
2987174294Sobrien	Amd initialization.  The parent forks a child to do all the hard
2988174294Sobrien	automounting work, and waits for a SIGQUIT signal from the child.
2989174294Sobrien	When the parent gets the signal it's supposed to call this handler
2990174294Sobrien	and exit(3), thus completing the daemonizing process.  Alas, on
2991174294Sobrien	some systems, especially Linux 2.4/2.6 with Glibc, exit(3) doesn't
2992174294Sobrien	always terminate the parent process.  Worse, the parent process
2993174294Sobrien	now refuses to accept any more SIGQUIT signals -- they are
2994174294Sobrien	blocked.  What's really annoying is that this doesn't happen all
2995174294Sobrien	the time, suggesting a race condition somewhere.
2996174294Sobrien	(This happens even if I change the logic to use another signal.)
2997174294Sobrien	I traced this to something which exit(3) does in addition to
2998174294Sobrien	exiting the process, probably some atexit() stuff or other
2999174294Sobrien	side-effects related to signal handling.  Either way, since at
3000174294Sobrien	this stage the parent process just needs to terminate, I'm simply
3001174294Sobrien	calling _exit(2).  Note also that the OpenGroup doesn't list
3002174294Sobrien	exit(3) as a recommended "Base Interface" but they do list
3003174294Sobrien	_exit(2) as one.  This fix seems to work reliably all the time.
3004174294Sobrien
3005174294Sobrien	* scripts/wait4amd2die.in: change default to recognize that amd is
3006174294Sobrien	down more quickly (check every 3 seconds instead of 5).
3007174294Sobrien
3008174294Sobrien2005-02-26  Erez Zadok  <ezk@cs.sunysb.edu>
3009174294Sobrien
3010174294Sobrien	* libamu/xutil.c (amu_release_controlling_tty): warn if closing
3011174294Sobrien	stdin/stdout/stderr failed.  No need for tempfd.
3012174294Sobrien
3013174294Sobrien	* scripts/ctl-{amd,hlfsd}.in: before running any real program in
3014174294Sobrien	these shell scripts, chdir to "/" to avoid possible hangs with
3015174294Sobrien	existing NFS mounts.  This was causing ctl-amd's forked
3016174294Sobrien	grand-child amd process to hang if restartable_mounts=no.  Go
3017174294Sobrien	figure.
3018174294Sobrien
3019174294Sobrien2005-02-25  Erez Zadok  <ezk@cs.sunysb.edu>
3020174294Sobrien
3021174294Sobrien	* minor new port ia64-unknown-linux-rhel4
3022174294Sobrien
3023174294Sobrien	* fsinfo/fsi_util.c (set_ether_if): avoid u_long casting to -1
3024174294Sobrien	(RHEL4 gcc 3.4.3 ia64 compiler complains).
3025174294Sobrien
3026174294Sobrien2005-02-24  Erez Zadok  <ezk@cs.sunysb.edu>
3027174294Sobrien
3028174294Sobrien	* minor new port i386-unknown-freebsd6.0 (6.0-CURRENT-SNAP001).
3029174294Sobrien
3030174294Sobrien2005-02-23  Erez Zadok  <ezk@cs.sunysb.edu>
3031174294Sobrien
3032174294Sobrien	* minor new port: i386-pc-linux-rhel3.
3033174294Sobrien
3034174294Sobrien	* INSTALL: major update of the compatibility list.
3035174294Sobrien
3036174294Sobrien	* m4/macros/os_cflags.m4: set AMU_CFLAGS not AM_CFLAGS.
3037174294Sobrien
3038174294Sobrien2005-02-22  Erez Zadok  <ezk@cs.sunysb.edu>
3039174294Sobrien
3040174294Sobrien	* scripts/amd.conf.5, doc/am-utils.texi (preferred_amq_port):
3041174294Sobrien	document new preferred_amq_port [global] option.
3042174294Sobrien
3043174294Sobrien	* scripts/amd.conf-sample (preferred_amq_port): example.
3044174294Sobrien
3045174294Sobrien	* include/am_utils.h: add preferred_amq_port to prototype.
3046174294Sobrien
3047174294Sobrien	* conf/transp/transp_tli.c (bind_preferred_amq_port): new function
3048174294Sobrien	to bind the Amq RPC service for UDP and TCP to a preferred port
3049174294Sobrien	(or to any port if preferred_amq_port==0).
3050174294Sobrien	(create_amq_service): decide if to bind to RPC_ANYFD, or to a
3051174294Sobrien	requested port.
3052174294Sobrien
3053174294Sobrien	* conf/transp/transp_sockets.c (create_amq_service): if
3054174294Sobrien	preferred_amq_port is greater than 0, then bind to that port for
3055174294Sobrien	both UDP and TCP.  If preferred_amq_port==0, then bind to any
3056174294Sobrien	port.
3057174294Sobrien
3058174294Sobrien	* amd/nfs_start.c (mount_automounter): pass global
3059174294Sobrien	preferred_amq_port value to create_amq_service().
3060174294Sobrien
3061174294Sobrien	* amd/conf.c (gopt_preferred_amq_port): new function to parse
3062174294Sobrien	amd.conf value for preferred_amq_port.
3063174294Sobrien
3064174294Sobrien	* amd/amd.h: placeholder for preferred_amq_port.
3065174294Sobrien
3066174294Sobrien2005-02-21  Erez Zadok  <ezk@cs.sunysb.edu>
3067174294Sobrien
3068174294Sobrien	* conf/transp/transp_tli.c (bind_resv_port_only_udp): rename old
3069174294Sobrien	bindnfs_port to a more proper name.  This function binds the NFS
3070174294Sobrien	service to a specified port, and only for UDP.
3071174294Sobrien
3072174294Sobrien	* conf/transp/transp_tli.c: cleanup some code, rename some
3073174294Sobrien	functions, in preparation for RPC amq port specification code.
3074174294Sobrien
3075174294Sobrien2005-02-19  Erez Zadok  <ezk@cs.sunysb.edu>
3076174294Sobrien
3077174294Sobrien	* */Makefile.am: don't redefine CFLAGS or LDFLAGS; they are
3078174294Sobrien	reserved for users to pass them on the command line.  Instead, use
3079174294Sobrien	autoconf's internal AM_CFLAGS and AM_LDFLAGS.
3080174294Sobrien
3081174294Sobrien	* depcomp, install-sh, missing, mkinstalldirs: update from latest
3082174294Sobrien	versions of Automake 1.9.2.
3083174294Sobrien
3084174294Sobrien	* m4/macros/*.m4: properly quote AC_DEFUN'ed macro name, and fix
3085174294Sobrien	regexp/patsubst M4 commands.  Newer versions of autoconf (e.g.,
3086174294Sobrien	v2.59) complain about those.
3087174294Sobrien
3088174294Sobrien2005-02-17  Erez Zadok  <ezk@cs.sunysb.edu>
3089174294Sobrien
3090174294Sobrien	* amd/opts.c (f_xhost): if we don't have hstrerror, just print the
3091174294Sobrien	value of h_errno.
3092174294Sobrien
3093174294Sobrien	* configure.in: include -lresolv if it defines the hstrerror()
3094174294Sobrien	function and not already available in existing libraries.
3095174294Sobrien
3096174294Sobrien	* minor new port: powerpc-apple-darwin7.7.0.
3097174294Sobrien
3098174294Sobrien	* amd/nfs_subr.c (mp_to_fh): pathlen should be u_int because it is
3099174294Sobrien	later compared against an unsigned quantity (complaint from gcc
3100174294Sobrien	3.3 on SuSE 8.2)
3101174294Sobrien
3102174294Sobrien	* include/am_utils.h: remove unnecessary (and conflicting) extern
3103174294Sobrien	for bind_resv_port2(), which is declared as static in
3104174294Sobrien	transp_tli.c.
3105174294Sobrien
3106174294Sobrien	* doc/am-utils.texi, scripts/amd.conf.5, scripts/amd.conf-sample,
3107174294Sobrien	NEWS: document four new amd.conf options: nfs_retry_interval_udp,
3108174294Sobrien	nfs_retransmit_counter_udp nfs_retry_interval_tcp, and
3109174294Sobrien	nfs_retransmit_counter_tcp.
3110174294Sobrien
3111174294Sobrien	* amd/ops_nfs.c (mount_nfs_fh): set timeo/retrans values based on
3112174294Sobrien	wether nfs_proto was "udp" or "tcp".
3113174294Sobrien
3114174294Sobrien	* amd/amfs_toplvl.c (amfs_toplvl_mount): set retrans/timeo values
3115174294Sobrien	from default UDP settings (because toplvl mounts are UDP for now).
3116174294Sobrien
3117174294Sobrien	* amd/get_args.c (get_args): use parameters to -t option to set
3118174294Sobrien	both UDP and TCP timeo/retrans values.
3119174294Sobrien
3120174294Sobrien	* amd/conf.c: (gopt_nfs_retransmit_counter_udp,
3121174294Sobrien	(gopt_nfs_retransmit_counter_tcp, gopt_nfs_retry_interval_udp
3122174294Sobrien	(gopt_nfs_retry_interval_tcp): new functions to parse UDP and TCP
3123174294Sobrien	retrans/timeo parameters separately.
3124174294Sobrien	(gopt_nfs_retry_interval, gopt_nfs_retransmit_counter): if
3125174294Sobrien	specified, use it to set defaults for both UDP and TCP.
3126174294Sobrien
3127174294Sobrien	* amd/amd.c (init_global_options): initialize default values of
3128174294Sobrien	both UDP and TCP retrans/timeo values to -1.
3129174294Sobrien
3130174294Sobrien	* amd/amd.h (AMU_TYPE_{TCP,UDP,MAX}): define separate retrans and
3131174294Sobrien	timeo values, one for udp mounts and another for tcp mounts.
3132174294Sobrien
3133174294Sobrien2005-02-16  Erez Zadok  <ezk@cs.sunysb.edu>
3134174294Sobrien
3135174294Sobrien	* README.osx: new file with some instructions for Mac OS-X users,
3136174294Sobrien	courtesy Kevin Layer.
3137174294Sobrien
3138174294Sobrien	* amd/get_args.c (get_args): move call to switch_to_logfile()
3139174294Sobrien	after processing -v, so we don't print "no logfile defined; using
3140174294Sobrien	stderr" when we're about to print version info and exit anyway.
3141174294Sobrien
3142174294Sobrien	* minor new port: powerpc-ibm-aix5.3.0.0.
3143174294Sobrien
3144174294Sobrien	* hlfsd/hlfsd.c (main): rewrite code to avoid negative array
3145174294Sobrien	references.
3146174294Sobrien
3147174294Sobrien	* conf/checkmount/checkmount_aix.c: remove extern definition for
3148174294Sobrien	mntctl(), since AIX 5.3 has it in <sys/vmount.h>.
3149174294Sobrien
3150174294Sobrien	* amd/info_union.c (union_reload): rewrite code to avoid negative
3151174294Sobrien	array references.
3152174294Sobrien
3153174294Sobrien	* amd/opts.c (split_opts, expand_op): rewrite code to avoid
3154174294Sobrien	negative array references.
3155174294Sobrien
3156174294Sobrien	* conf/mtab/mtab_aix.c: remove extern definition for mntctl(),
3157174294Sobrien	since AIX 5.3 has it in <sys/vmount.h>.
3158174294Sobrien
3159174294Sobrien	* libamu/xutil.c (real_plog): rewrite code to avoid negative array
3160174294Sobrien	references.
3161174294Sobrien
3162174294Sobrien	* libamu/wire.c (is_network_member): rearrange code slightly to
3163174294Sobrien	avoid negative array references (AIX 5.3 xlC 7.0 compiler
3164174294Sobrien	complains about it).
3165174294Sobrien
3166174294Sobrien2005-01-26  Erez Zadok  <ezk@cs.sunysb.edu>
3167174294Sobrien
3168174294Sobrien	* doc/am-utils.texi (xhost Selector Function): document new
3169174294Sobrien	selector function.
3170174294Sobrien
3171174294Sobrien	* amd/opts.c (f_xhost): new function for use when matching the
3172174294Sobrien	"host" selector for the current host's name.  This function will
3173174294Sobrien	now match the primary host name as well as all known aliases
3174174294Sobrien	(CNAMES) that gethostbyname() returns.  This function now supports
3175174294Sobrien	a new function selector called xhost(ARG); the old host==ARG
3176174294Sobrien	selector is unharmed.
3177174294Sobrien
3178174294Sobrien2005-01-17  Ion Badulescu  <ionut@moisil.badula.org>
3179174294Sobrien
3180174294Sobrien	* NEWS: document the ability to restart old mount points
3181174294Sobrien
3182174294Sobrien	* amd/map.c (mount_auto_node): force the fileid of the
3183174294Sobrien	root to be 1, so that it won't change between restarts; use the
3184174294Sobrien	root filesystem's own methods instead of hard-coding the use of
3185174294Sobrien	the default methods
3186174294Sobrien
3187174294Sobrien	* conf/transp/transp_tli.c (create_nfs_service): better cleanup on
3188174294Sobrien	error conditions.
3189174294Sobrien	(bind_resv_port2): allow the caller to request a certain port.
3190174294Sobrien
3191174294Sobrien	* conf/transp/transp_sockets.c (bind_resv_port): allow the caller
3192174294Sobrien	to request a certain port.
3193174294Sobrien	(create_nfs_service): better cleanup on error conditions.
3194174294Sobrien
3195174294Sobrien	* amd/restart.c (restart_automounter_nodes): new function, takes
3196174294Sobrien	care of restarting automounter NFS mount points (autofs will come
3197174294Sobrien	later).
3198174294Sobrien	(restart): skip all automounter mount points.
3199174294Sobrien
3200174294Sobrien	* amd/nfs_subr.c (fh_to_mp3, mp_to_fh): new filehandle
3201174294Sobrien	implementation: if the path to the node is shorter than sizeof(fh)
3202174294Sobrien	chars (currently 32 chars for a NFSv2 fh), simply store it inside
3203174294Sobrien	the fh. For longer paths, keep the old implementation.
3204174294Sobrien
3205174294Sobrien	* amd/nfs_start.c (mount_automounter): reorder things so that
3206174294Sobrien	restarting the toplvl filesystems occurs before anything else (so
3207174294Sobrien	that we can grab all the ports we need before we accidentally use
3208174294Sobrien	them for something else).
3209174294Sobrien
3210174294Sobrien	* amd/mntfs.c (locate_mntfs): remove dead code; add special
3211174294Sobrien	handling of restarted toplvl filesystems.
3212174294Sobrien
3213174294Sobrien	* amd/mapc.c (root_keyiter): fix up a comment.
3214174294Sobrien
3215174294Sobrien	* amd/map.c (path_to_exported_ap): new function, searches for and
3216174294Sobrien	returns a node by the path to it.
3217174294Sobrien	(get_root_nfs_fh): remove unnecessary fiddling with the root fh.
3218174294Sobrien
3219174294Sobrien	* config.guess.long: support Red Hat Enterprise Linux
3220174294Sobrien
3221174294Sobrien2005-01-17  Erez Zadok  <ezk@cs.sunysb.edu>
3222174294Sobrien
3223174294Sobrien	* libamu/util.c (rmdirs): prevent amd from logging 'Read-only
3224174294Sobrien	filesystem' errors when the mount point has an ancestor (i.e. '/')
3225174294Sobrien	that is mounted read-only.  Patch from David Rage <rage@ucl.ac.uk>.
3226174294Sobrien
3227174294Sobrien2005-01-17  Ion Badulescu  <ionut@moisil.badula.org>
3228174294Sobrien
3229174294Sobrien	* conf/umount/umount_linux.c (umount_fs): Linux doesn't need the
3230174294Sobrien	autofs space hack
3231174294Sobrien
3232174294Sobrien	* conf/umount/umount_default.c (umount_fs): there is no need for
3233174294Sobrien	HAVE_LOOP_DEV, now that Linux has its own dedicated umount_linux.c
3234174294Sobrien
3235174294Sobrien2005-01-17  Erez Zadok  <ezk@cs.sunysb.edu>
3236174294Sobrien
3237174294Sobrien	* doc/am-utils.texi (Automatic Unmounting): document new umount2()
3238174294Sobrien	behavior on Linux.
3239174294Sobrien
3240174294Sobrien	* conf/umount/umount_linux.c (umount_fs): new file.  On Linux, if
3241174294Sobrien	umount(2) failed with EIO or ESTALE, try umount2(2) with
3242174294Sobrien	MNT_FORCE+MNT_DETACH.  Based on patch from Christos Zoulas
3243174294Sobrien	<christos@zoulas.com>.
3244174294Sobrien
3245174294Sobrien	* m4/macros/check_umount_style.m4: pick new linux umount style.
3246174294Sobrien
3247174294Sobrien	* Makefile.am (EXTRA_DIST_CONF): distribute new umount_linux.c
3248174294Sobrien	file.
3249174294Sobrien
3250174294Sobrien2005-01-16  Erez Zadok  <ezk@cs.sunysb.edu>
3251174294Sobrien
3252174294Sobrien	* conf/nfs_prot/nfs_prot_aix{4_2,4_3,5_1,5_2}.h,
3253174294Sobrien	m4/macros/struct_nfs_args.m4: minor cleanups for quicker execution
3254174294Sobrien	of "nfs_args" test.
3255174294Sobrien
3256174294Sobrien2005-01-13  Erez Zadok  <ezk@cs.sunysb.edu>
3257174294Sobrien
3258174294Sobrien	* amd/get_args.c (show_usage): separate function to print usage
3259174294Sobrien	string.
3260174294Sobrien	(get_args) Call show_usage() from get_args when needed, then exit.
3261174294Sobrien
3262174294Sobrien	* amd/get_args.c (get_version_string): print also domain, host,
3263174294Sobrien	and hostd.
3264174294Sobrien	(get_args): print version string at the very end, after all other
3265174294Sobrien	values had been initialized.  Patch from Christos Zoulas
3266174294Sobrien	<christos@zoulas.com>.
3267174294Sobrien
3268174294Sobrien	* conf/transp/transp_sockets.c (check_pmap_up, get_nfs_version),
3269174294Sobrien	conf/transp/transp_tli.c (check_pmap_up): correct an inconsistency
3270174294Sobrien	in timeouts in the RPC code between socket and TLI
3271174294Sobrien	implementations.  The clntudp_create timeout has a different
3272174294Sobrien	meaning than the clnt_call timeout.  Set the timeout of the create
3273174294Sobrien	to 2 seconds which means retry if no answer in two seconds, and
3274174294Sobrien	the timeout call to 6 seconds, which will give us consistently 2
3275174294Sobrien	to 3 pings.  This is useful on occasional network UDP loss where a
3276174294Sobrien	single packet loss would wrongfully mark a server down.  (The TLI
3277174294Sobrien	code is the one that had the problem occurs.)  Patch from Christos
3278174294Sobrien	Zoulas <christos@zoulas.com>.
3279174294Sobrien
3280174294Sobrien	* libamu/mount_fs.c (compute_nfs_attrcache_flags): make sure code
3281174294Sobrien	compiles even for systems that don't have the nfs_args
3282174294Sobrien	ac{reg,dir}{min,max} fields.
3283174294Sobrien
3284174294Sobrien	* amd/amfs_toplvl.c (set_auto_attrcache_timeout): just to be safe,
3285174294Sobrien	add "noac" if amd.conf option auto_attrcache was set to 0.  This
3286174294Sobrien	should hopefully make the compute_nfs_attrcache_flags patch even
3287174294Sobrien	safer.
3288174294Sobrien
3289174294Sobrien	* libamu/mount_fs.c (compute_nfs_attrcache_flags): separate
3290174294Sobrien	function to compute attribute-cache values.  This function now
3291174294Sobrien	computes attribute-cache flags for BOTH Amd's automount points
3292174294Sobrien	(NFS) as well as any normal NFS mount that Amd performs.
3293174294Sobrien	(compute_nfs_args, compute_automounter_nfs_args): call
3294174294Sobrien	compute_nfs_attrcache_flags to figure out attribute-cache related
3295174294Sobrien	flags.  Patch from Christos Zoulas <christos@zoulas.com>.
3296174294Sobrien
3297174294Sobrien	* scripts/amd.conf-sample: show examples of new global options
3298174294Sobrien	domain_strip and auto_attrcache.
3299174294Sobrien
3300174294Sobrien	* scripts/amd.conf.5: document new global options domain_strip and
3301174294Sobrien	auto_attrcache.  Add warning to auto_attrcache use in case of
3302174294Sobrien	ESTALE.
3303174294Sobrien
3304174294Sobrien	* doc/am-utils.texi: minor cleanups and document new global
3305174294Sobrien	options domain_strip and auto_attrcache.  Add warning to
3306174294Sobrien	auto_attrcache use in case of ESTALE.
3307174294Sobrien
3308174294Sobrien	* amd/conf.c (gopt_auto_attrcache): parse new global amd.conf
3309174294Sobrien	option auto_attrcache.
3310174294Sobrien	(gopt_domain_strip): parse new global amd.conf option
3311174294Sobrien	domain_strip.  Part of a patch from Christos Zoulas
3312174294Sobrien	<christos@zoulas.com>.
3313174294Sobrien
3314174294Sobrien	* amd/autil.c (host_normalize): don't call domain_strip()
3315174294Sobrien	unconditionally, but depend on the new global amd.conf flag
3316174294Sobrien	domain_strip.
3317174294Sobrien
3318174294Sobrien	* amd/amfs_toplvl.c (set_auto_attrcache_timeout): new function to
3319174294Sobrien	set attribute cache timeout value given other configured global
3320174294Sobrien	defaults.
3321174294Sobrien	(amfs_toplvl_mount): set automount point attribute cache option
3322174294Sobrien	value to "noac" if attrcache=0, else set it to whatever
3323174294Sobrien	set_auto_attrcache_timeout() returns.
3324174294Sobrien
3325174294Sobrien	* amd/amd.h (CFM_DOMAIN_STRIP, CFM_DEFAULT_FLAGS): flag to decide
3326174294Sobrien	if to strip the domain from the host name or not, default options
3327174294Sobrien	set to strip the domain.
3328174294Sobrien	Store global value of automount attribute cache timeout value.
3329174294Sobrien
3330174294Sobrien	* amd/amd.c (init_global_options): add flag to record automount
3331174294Sobrien	point attribute cache value.
3332174294Sobrien
3333174294Sobrien	* amd/amd.c (do_memory_locking): new function to encapsulate all
3334174294Sobrien	of the memory-locking functionality, which was in main() before.
3335174294Sobrien	Also added a call to madvise(), just in case.
3336174294Sobrien	(main): call do_memory_locking() to pin process memory if amd.conf
3337174294Sobrien	asked for it, but do so after the main Amd process daemonizes,
3338174294Sobrien	because mlock/mlockall is not inherited by fork() by default.
3339174294Sobrien	Slightly restructured patch from Jonathan Chen
3340174294Sobrien	<jon+amd@spock.org>.
3341174294Sobrien
3342174294Sobrien	* configure.in: check for madvise(2).
3343174294Sobrien
3344174294Sobrien	* config.guess, config.sub: updates for latest official GNU
3345174294Sobrien	versions.
3346174294Sobrien
3347174294Sobrien	* m4/GNUmakefile: update paths to "make update"
3348174294Sobrien
3349174294Sobrien2005-01-12  Erez Zadok  <ezk@cs.sunysb.edu>
3350174294Sobrien
3351174294Sobrien	* conf/nfs_prot/nfs_prot_hpux11.h: define an nfs_fh3 structure
3352174294Sobrien	that's compatible for HPUX11 as well as NFSv3.
3353174294Sobrien
3354174294Sobrien	* include/am_defs.h: On AIX 5.2, both <resolv.h> and
3355174294Sobrien	<arpa/nameser_compat.h> define MAXDNAME, if compiling with gcc
3356174294Sobrien	-D_USE_IRS (so that we get extern definitions for hstrerror() and
3357174294Sobrien	others).  So undef MAXDNAME before it gets redefined.
3358174294Sobrien
3359174294Sobrien	* include/am_defs.h: Solaris 10 (build 72) defines GROUP_OBJ in
3360174294Sobrien	<sys/acl.h>, which is included in many other header files.
3361174294Sobrien	<rpcsvc/nis.h> uses GROUP_OBJ inside enum zotypes.  So if you're
3362174294Sobrien	unlucky enough to include both headers, you get a compile error
3363174294Sobrien	because the two symbols conflict.  Temp hack: undefine acl.h's
3364174294Sobrien	GROUP_OBJ before including nis.h, because we don't need acl.h for
3365174294Sobrien	am-utils.
3366174294Sobrien
3367174294Sobrien	* m4/macros/os_cflags.m4: turn -D_USE_IRS for AIX5+ so that
3368174294Sobrien	certain extern definitions of resolver functions become available.
3369174294Sobrien
3370174294Sobrien	* amd/opts.c (expand_op): use #define for expand_error string
3371174294Sobrien	because some compilers complain about the use of static const
3372174294Sobrien	char[] inside a varargs function.
3373174294Sobrien
3374174294Sobrien	* minor new port i386-unknown-netbsdelf1.6.2.
3375174294Sobrien
3376174294Sobrien	* new port i386-unknown-netbsdelf2.0.
3377174294Sobrien
3378174294Sobrien	* minor port i386-unknown-freebsd5.3.
3379174294Sobrien
3380174294Sobrien	* libamu/mount_fs.c (compute_nfs_args): don't compare
3381174294Sobrien	nap->maxgrouplist against NULL but against 0 directly, because on
3382174294Sobrien	FreeBSD 4.3, NULL is defined is (void *)0 and gcc 3.4 complains
3383174294Sobrien	about a type mismatch.
3384174294Sobrien
3385174294Sobrien	* minor port i386-pc-linux-fc3 (Fedora Core 3).
3386174294Sobrien
3387174294Sobrien2005-01-11  Erez Zadok  <ezk@cs.sunysb.edu>
3388174294Sobrien
3389174294Sobrien	* hlfsd/hlfsd.c (main): use sigsuspend() over sigpause(), because
3390174294Sobrien	FC3 doesn't have proper extern definition for the defunct
3391174294Sobrien	sigpause().
3392174294Sobrien
3393174294Sobrien	* configure.in: look for sigsuspend().
3394174294Sobrien
3395174294Sobrien2005-01-01  Erez Zadok  <ezk@cs.sunysb.edu>
3396174294Sobrien
3397174294Sobrien	* updated copyright year to 2005 on all files.
3398174294Sobrien
3399174294Sobrien2004-11-29  Erez Zadok  <ezk@cs.sunysb.edu>
3400174294Sobrien
3401174294Sobrien	* scripts/amd.conf.5: Small fixes to typos in man page, from
3402174294Sobrien	Thomas Klausner <tk@giga.or.at>.
3403174294Sobrien
3404174294Sobrien2004-10-22  Erez Zadok  <ezk@cs.sunysb.edu>
3405174294Sobrien
3406174294Sobrien	* ldap.schema: add this file to distribution.
3407174294Sobrien
3408174294Sobrien2004-09-15  Erez Zadok  <ezk@cs.sunysb.edu>
3409174294Sobrien
3410174294Sobrien	* doc/am-utils.texi: fix old URLs.
3411174294Sobrien
3412174294Sobrien2004-09-01  Erez Zadok  <ezk@cs.sunysb.edu>
3413174294Sobrien
3414174294Sobrien	* conf/mtab/mtab_aix.c (read_mtab): avoid a race condition between
3415174294Sobrien	multiple calls to mntctl().  Patch suggested by Michael van Elst
3416174294Sobrien	<M.van.Elst@science-computing.de>.
3417174294Sobrien
3418174294Sobrien2004-08-07  Erez Zadok  <ezk@cs.sunysb.edu>
3419174294Sobrien
3420174294Sobrien	* doc/am-utils.texi (Program Filesystem): document how to get
3421174294Sobrien	double slashes in Amd maps.
3422174294Sobrien
3423174294Sobrien	* amd/opts.c (normalize_slash): support escaped slashes, needed
3424174294Sobrien	for SMB mounts.  Use '\\\/\\\/' in a string to get a double slash.
3425174294Sobrien
3426174294Sobrien2004-08-06  Erez Zadok  <ezk@cs.sunysb.edu>
3427174294Sobrien
3428174294Sobrien	* amd/amfs_program.c (amfs_program_match): bug fix.  Complain if
3429174294Sobrien	both opt_unmount and opt_umount are missing, not when just one of
3430174294Sobrien	them is missing.
3431174294Sobrien
3432174294Sobrien2004-08-03  Erez Zadok  <ezk@cs.sunysb.edu>
3433174294Sobrien
3434174294Sobrien	* amq/pawd.c (find_mt): recognize "linkx" type mounts.  Patch from
3435174294Sobrien	Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>.  Support "nfsx" while
3436174294Sobrien	we're at it.
3437174294Sobrien
3438174294Sobrien	* doc/am-utils.texi: mention bugzilla.  Fix broken URL HREF's.
3439174294Sobrien
3440174294Sobrien2004-08-02  Erez Zadok  <ezk@cs.sunysb.edu>
3441174294Sobrien
3442174294Sobrien	* amq/pawd.c (find_mt): recognize "host" type mounts.  Patch from
3443174294Sobrien	Dan Nelson <dnelson@allantgroup.com>.
3444174294Sobrien
3445174294Sobrien2004-07-30  Erez Zadok  <ezk@cs.sunysb.edu>
3446174294Sobrien
3447174294Sobrien	* doc/am-utils.texi, NEWS: minor typos fixed.
3448174294Sobrien
3449174294Sobrien2004-07-30  Erez Zadok  <ezk@play.cs.columbia.edu>
3450174294Sobrien
3451174294Sobrien	* include/am_xdr_func.h: cannot have field-less structure; put a
3452174294Sobrien	dummy field in.
3453174294Sobrien
3454174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c (xdr_autofs_rddirargs): cast
3455174294Sobrien	2nd arg of xdr_u_int to a u_int*, not int*.
3456174294Sobrien	(autofs_mount_2_req): don't use C++ // comments.
3457174294Sobrien
3458174294Sobrien2004-07-30  Erez Zadok  <ezk@cs.sunysb.edu>
3459174294Sobrien
3460174294Sobrien	* m4/macros/{try_compile_anyfs,check_field}.m4: include
3461174294Sobrien	<fs/msdosfs/msdosfsmount.h> if it exists.  Part of a set of
3462174294Sobrien	FreeBSD 5 patches from Martin Blapp <mb@imp.ch>.
3463174294Sobrien
3464174294Sobrien	* include/am_defs.h: include <fs/msdosfs/msdosfsmount.h> if it
3465174294Sobrien	exists.
3466174294Sobrien
3467174294Sobrien	* amd/ops_pcfs.c (mount_pcfs): set pcfs_args_t.dirmask field to
3468174294Sobrien	0777 by default.
3469174294Sobrien
3470174294Sobrien	* configure.in: check for pcfs_args_t.dirmask field.  Check for
3471174294Sobrien	existence of <fs/msdosfs/msdosfsmount.h>, new on FreeBSD 5.
3472174294Sobrien
3473174294Sobrien2004-07-29  Erez Zadok  <ezk@cs.sunysb.edu>
3474174294Sobrien
3475174294Sobrien	* minor new port: i386-pc-linux-fc2 (Fedora Core 2).
3476174294Sobrien
3477174294Sobrien	* amd/info_ldap.c (amu_ldap_rebind): don't use ldap_enable_cache()
3478174294Sobrien	unless the function exists in libldap and the extern is in
3479174294Sobrien	<ldap.h>.  Recently, openldap removed the extern from ldap.h, but
3480174294Sobrien	left the function in libldap, for binary compatibility; however
3481174294Sobrien	ldap_enable_cache and related functions have been deprecated (and
3482174294Sobrien	no longer listed in the header files), and therefore should be
3483174294Sobrien	avoided.
3484174294Sobrien
3485174294Sobrien	* m4/macros/check_extern_ldap.m4: new macro to check for
3486174294Sobrien	LDAP-specific externs.  This is separate from check_extern.m4 so
3487174294Sobrien	as to avoid breaking the general-purpose macro with LDAP-specific
3488174294Sobrien	headers.
3489174294Sobrien
3490174294Sobrien	* m4/macros/header_templates.m4: extern template for new
3491174294Sobrien	HAVE_EXTERN_LDAP_ENABLE_CACHE.
3492174294Sobrien
3493174294Sobrien	* configure.in: call new check_extern_ldap.m4 macro.
3494174294Sobrien
3495174294Sobrien	* Makefile.am (EXTRA_DIST_M4): distribute new check_extern_ldap.m4
3496174294Sobrien	macro.
3497174294Sobrien
3498174294Sobrien	* config.guess.long: distinguish between redhat and fedora-core
3499174294Sobrien	releases.
3500174294Sobrien
3501174294Sobrien2004-07-23  Erez Zadok  <ezk@cs.sunysb.edu>
3502174294Sobrien
3503174294Sobrien	* Minor new port i386-pc-linux-suse8.2: minor new port to SuSE
3504174294Sobrien	8.2.  This systems' latest GCC (gcc version 3.3 20030226
3505174294Sobrien	prerelease) correctly caught a lot of possibly bad comparisons
3506174294Sobrien	between signed and unsigned quantities.
3507174294Sobrien
3508174294Sobrien	* hlfsd/homedir.c (table_add, plt_search): changed first arg of
3509174294Sobrien	both functions to u_int.
3510174294Sobrien
3511174294Sobrien	* hlfsd/hlfsd.h, hlfsd/hlfsd.c: change 'cache_interval' to u_int.
3512174294Sobrien	Changed proto for plt_search arg to u_int.
3513174294Sobrien
3514174294Sobrien	* amq/amq.c (show_mi, main): change 'i' to u_int.
3515174294Sobrien
3516174294Sobrien	* amq/pawd.c (find_mlp): change 'i' to u_int.
3517174294Sobrien
3518174294Sobrien	* amd/srvr_nfs.c (find_nfs_srvr): change proto_nfs_version to
3519174294Sobrien	u_int.
3520174294Sobrien
3521174294Sobrien	* amd/amd.h: change prototype of vreaddir and amfs_error_readdir
3522174294Sobrien	to use u_int count parameter.
3523174294Sobrien
3524174294Sobrien	* amd/ops_TEMPLATE.c (foofs_readdir), amd/amfs_error.c
3525174294Sobrien	(amfs_error_readdir): change 'count' parameter in proto to u_int.
3526174294Sobrien
3527174294Sobrien	* amd/amd.h: change proto of amfs_generic_readdir() to use u_int
3528174294Sobrien	count parameter.
3529174294Sobrien
3530174294Sobrien	* amd/readdir.c (make_entry_chain): preflen should be u_int.
3531174294Sobrien	(amfs_readdir_browsable): change 'count' to u_int.
3532174294Sobrien	(amfs_generic_readdir): change 'count' to u_int.
3533174294Sobrien
3534174294Sobrien	* amd/amd.h: amu_global_options's portmap_program field should be
3535174294Sobrien	u_long, not int (to match RPC conventions).  Change am_fh's
3536174294Sobrien	fhh_gen field to u_int, to match am_gen field in struct am_node.
3537174294Sobrien
3538174294Sobrien	* amd/conf.c (gopt_portmap_program): use atol() instead of atoi()
3539174294Sobrien	to avoid size differences.
3540174294Sobrien
3541174294Sobrien	* conf/mount/mount_linux.c (find_unused_loop_device): cast to int
3542174294Sobrien	to avoid comparison between chars and integers.
3543174294Sobrien
3544174294Sobrien	* libamu/mount_fs.c (get_hex_string): change 'i' to u_int to avoid
3545174294Sobrien	comparisons between signed and unsigned integers.
3546174294Sobrien
3547174294Sobrien2004-07-13  Erez Zadok  <ezk@cs.sunysb.edu>
3548174294Sobrien
3549174294Sobrien	* minor new port: i386-pc-linux-suse9.1.
3550174294Sobrien
3551174294Sobrien	* include/am_defs.h: don't use __kernel_dev_t for dev_t on Linux,
3552174294Sobrien	because SuSE wants __kernel_old_dev_t.  Instead, just define it
3553174294Sobrien	directly to what they both use: an unsigned short.
3554174294Sobrien
3555174294Sobrien2004-05-27  Erez Zadok  <ezk@cs.sunysb.edu>
3556174294Sobrien
3557174294Sobrien	* minor new port: i386-unknown-freebsd4.10
3558174294Sobrien
3559174294Sobrien2004-04-29  Ion Badulescu  <ionut@moisil.badula.org>
3560174294Sobrien
3561174294Sobrien	* amd/amfs_generic.c (amfs_lookup_one_mntfs): fix the creation of
3562174294Sobrien	mountpoints for autofs-based sublinks the right way
3563174294Sobrien
3564174294Sobrien2004-04-28  Ion Badulescu  <ionut@moisil.badula.org>
3565174294Sobrien
3566174294Sobrien	Fixes for various memory management problems discovered by
3567174294Sobrien	Rainer's purify run:
3568174294Sobrien
3569174294Sobrien	* conf/transp/transp_tli.c (check_pmap_up): zero out struct
3570174294Sobrien	timeval before using;
3571174294Sobrien	(get_nfs_version): ditto
3572174294Sobrien
3573174294Sobrien	* amd/map.c (umount_exported): make sure we don't try to free the
3574174294Sobrien	same am_node multiple times, by setting its corresponding
3575174294Sobrien	exported_ap slot to null
3576174294Sobrien
3577174294Sobrien	* amd/get_args.c (get_version_string): a static pointer is pretty
3578174294Sobrien	pointless, make it automatic
3579174294Sobrien
3580174294Sobrien	* amd/conf.c (gopt_debug_options): remove unnecessary strdup();
3581174294Sobrien	(gopt_log_options): ditto
3582174294Sobrien	(gopt_print_version): free version string after using it
3583174294Sobrien
3584174294Sobrien	* amd/autil.c (mf_mounted): free mntfs->mf_fo instead of leaking
3585174294Sobrien	it
3586174294Sobrien
3587174294Sobrien	* amd/amfs_generic.c (amfs_lookup_one_mntfs): use the CALLOC macro
3588174294Sobrien	(amfs_lookup_mntfs): free def_opts on return
3589174294Sobrien
3590174294Sobrien	* amd/amd.c (daemon_mode): zero out struct sigaction before using
3591174294Sobrien	it;
3592174294Sobrien	(main): ditto
3593174294Sobrien
3594174294Sobrien2004-04-27  Ion Badulescu  <ionut@moisil.badula.org>
3595174294Sobrien
3596174294Sobrien	* amd/amfs_generic.c (amfs_lookup_one_mntfs): force FS_MKMNT on
3597174294Sobrien	the real mount of an autofs-based sublink
3598174294Sobrien
3599174294Sobrien2004-04-25  Ion Badulescu  <ionut@moisil.badula.org>
3600174294Sobrien
3601174294Sobrien	* amd/map.c (free_map_if_success): avoid dereferencing a pointer
3602174294Sobrien	to potentially freed memory
3603174294Sobrien
3604174294Sobrien2004-02-26  Erez Zadok  <ezk@cs.sunysb.edu>
3605174294Sobrien
3606174294Sobrien	* minor new port: i386-unknown-freebsd5.2.1.
3607174294Sobrien
3608174294Sobrien2004-01-30  Ion Badulescu  <ion@guppy.limebrokerage.com>
3609174294Sobrien
3610174294Sobrien	* scripts/ctl-hlfsd.in: don't run hlfsd with -D fork
3611174294Sobrien
3612174294Sobrien2004-01-25  Erez Zadok  <ezk@cs.sunysb.edu>
3613174294Sobrien
3614174294Sobrien	* minor new port: sparc64-unknown-linux-deb3.0
3615174294Sobrien
3616174294Sobrien	* config.guess.long: recoognize Debian Linux.
3617174294Sobrien
3618174294Sobrien2004-01-22  Erez Zadok  <ezk@cs.sunysb.edu>
3619174294Sobrien
3620174294Sobrien	* conf/transp/transp_tli.c (amu_get_myaddress): use
3621174294Sobrien	htonl(INADDR_LOOPBACK) and define INADDR_LOOPBACK if not already
3622174294Sobrien	available.
3623174294Sobrien
3624174294Sobrien2004-01-21  Erez Zadok  <ezk@cs.sunysb.edu>
3625174294Sobrien
3626174294Sobrien	* wire-test/wire-test.c, hlfsd/hlfsd.c (main): pass NULL as second
3627174294Sobrien	parameter to amu_get_myaddress().
3628174294Sobrien
3629174294Sobrien	* conf/transp/transp_tli.c (amu_get_myaddress): resolve value of
3630174294Sobrien	localhost_address amd.conf parameter, if defined (else default to
3631174294Sobrien	HOST_SELF_CONNECT).
3632174294Sobrien	Removed htonl() around socket address copying (I think it was
3633174294Sobrien	wrong) since plog("My IP address is...") in amd.c was printing
3634174294Sobrien	addresses wrong on Solaris x86..
3635174294Sobrien
3636174294Sobrien	* conf/transp/transp_sockets.c (amu_get_myaddress): comment out
3637174294Sobrien	old DEBUG code that warns if 127.0.0.1 isn't the same as what
3638174294Sobrien	get_myaddress() reports.  Add code to resolve value of
3639174294Sobrien	localhost_address amd.conf parameter, if defined (else default to
3640174294Sobrien	127.0.0.1).
3641174294Sobrien
3642174294Sobrien	* amd/conf.c (gopt_localhost_address): new function to parse
3643174294Sobrien	amd.conf parameter localhost_address.
3644174294Sobrien
3645174294Sobrien	* amd/amd.h: global field to store amd.conf localhost_address
3646174294Sobrien	parameter.
3647174294Sobrien
3648174294Sobrien	* amd/amd.c (main): call amu_get_myaddress with global option,
3649174294Sobrien	which could have been set in amd.conf.
3650174294Sobrien
3651174294Sobrien	* NEWS, doc/am-utils.texi, scripts/amd.conf-sample,
3652174294Sobrien	scripts/amd.conf.5: document new option localhost_address.
3653174294Sobrien
3654131702Smbr2004-01-20  Ion Badulescu  <ionut@moisil.badula.org>
3655131702Smbr
3656131702Smbr	* amd/conf.c (gopt_nfs_allow_insecure_port): support function for
3657131702Smbr	the new "nfs_allow_insecure_port" amd.conf directive
3658131702Smbr
3659131702Smbr	* amd/nfs_prot_svc.c (nfs_program_2): complain about the insecure
3660131702Smbr	port and drop the request only if the "nfs_allow_insecure_port"
3661131702Smbr	option is not set in amd.conf
3662131702Smbr
3663131702Smbr	* doc/am-utils.texi (Global Parameters): documented the new
3664131702Smbr	amd.conf directive "nfs_allow_insecure_port"
3665131702Smbr
3666131702Smbr	* scripts/amd.conf.5 (nfs_allow_insecure_port): ditto
3667131702Smbr
3668131702Smbr	* scripts/amd.conf-sample (nfs_allow_insecure_port): added the
3669131702Smbr	"nfs_allow_insecure_port" directive
3670131702Smbr
3671131702Smbr2004-01-20  Erez Zadok  <ezk@cs.sunysb.edu>
3672131702Smbr
3673131702Smbr	* doc/am-utils.texi: amd-workers is defunct.
3674131702Smbr
3675131702Smbr2004-01-19  Erez Zadok  <ezk@cs.sunysb.edu>
3676131702Smbr
3677131702Smbr	* cvs-server.txt: updated instructions
3678131702Smbr
3679131702Smbr2004-01-18  Erez Zadok  <ezk@cs.sunysb.edu>
3680131702Smbr
3681131702Smbr	* minor new port: i386-unknown-freebsd5.2.
3682131702Smbr
3683131702Smbr2004-01-05  Erez Zadok  <ezk@cs.sunysb.edu>
3684131702Smbr
3685131702Smbr	* MIRRORS.{txt,html}: verify each mirror site, update to new
3686131702Smbr	locations (if found), and remove stale mirrors URLs.
3687131702Smbr
3688131702Smbr	* updated copyright year to 2004 on all files.
3689131702Smbr
3690174294Sobrien2004-01-03  Erez Zadok  <ezk@cs.sunysb.edu>
3691174294Sobrien
3692174294Sobrien	* MIRRORS.txt: track status.
3693174294Sobrien
3694131702Smbr	* Makefile.am (install-snapshot): new directory to install
3695131702Smbr	snapshots (now that am-utils home page is moved).
3696131702Smbr
3697174294Sobrien2004-01-02  Erez Zadok  <ezk@cs.sunysb.edu>
3698174294Sobrien
3699131702Smbr	* INSTALL, README.autofs: remove forced text-mode.
3700131702Smbr
3701131702Smbr	* doc/am-utils.texi: fix Amd book URL.
3702131702Smbr
3703131702Smbr	* Makefile.am (EXTRA_DIST): include new mirror files in tarball.
3704131702Smbr
3705131702Smbr	* AUTHORS, BUGS, README, README.y2k, configure.in,
3706131702Smbr	doc/am-utils.texi: revisions to use newer URLs for Web site, FTP,
3707131702Smbr	and mailing lists.
3708131702Smbr
3709174294Sobrien	* MIRRORS.{html,txt}: updates.
3710131702Smbr
3711131702Smbr	* doc/Makefile.am: install mirror lists officially.
3712131702Smbr
3713174294Sobrien2004-01-01  Erez Zadok  <ezk@cs.sunysb.edu>
3714174294Sobrien
3715174294Sobrien	* tasks: things to do after migrating ftp/Web sites.
3716174294Sobrien
3717174294Sobrien2003-12-09  Erez Zadok  <ezk@cs.sunysb.edu>
3718174294Sobrien
3719174294Sobrien	* fsinfo/fsinfo.8: fixed typo (unbalanced []) in man page.  Bug
3720174294Sobrien	report from Eric S. Raymond <esr@thyrsus.com>.
3721174294Sobrien
3722174294Sobrien2003-11-18  Erez Zadok  <ezk@cs.sunysb.edu>
3723174294Sobrien
3724174294Sobrien	* Makefile.am (EXTRA_DIST_M4): exclude removed file
3725174294Sobrien	m4/macros/struct_nfs_fh3.m4 from distro.
3726174294Sobrien
3727174294Sobrien2003-10-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3728174294Sobrien
3729174294Sobrien	* libamu/xdr_func.c (xdr_am_nfs_fh3): Use AM_FHSIZE3 instead of
3730174294Sobrien	FHSIZE3 (may be undefined).
3731174294Sobrien
3732174294Sobrien2003-10-24  Ion Badulescu  <ion@guppy.limebrokerage.com>
3733174294Sobrien
3734174294Sobrien	Compile fix for Solaris7 with LDAP:
3735174294Sobrien
3736174294Sobrien	* include/am_defs.h: moved the ldap headers before am_nfs_prot.h
3737174294Sobrien	to facilitate using ldap types in it
3738174294Sobrien
3739174294Sobrien	* conf/nfs_prot/nfs_prot_sunos5_7.h: add a couple of ldap
3740174294Sobrien	definitions that Sun left out of their headers
3741174294Sobrien
3742174294Sobrien2003-10-24  Ion Badulescu  <ionut@moisil.badula.org>
3743174294Sobrien
3744174294Sobrien	* conf/nfs_prot/nfs_prot_*.h: remove all NFSv3-related
3745174294Sobrien	definitions, they are now defined globally
3746174294Sobrien
3747174294Sobrien	* libamu/xdr_func.c: unconditionally define all xdr functions
3748174294Sobrien	needed for NFSv3, but with an am_ prefix to prevent namespace
3749174294Sobrien	collisions
3750174294Sobrien
3751174294Sobrien	* amd/amfs_host.c, amd/ops_nfs.c, amd/srvr_nfs.c,
3752174294Sobrien	libamu/mount_fs.c: added the am_ prefix to all
3753174294Sobrien	structures and functions having to do with NFSv3 to prevent
3754174294Sobrien	namespace collisions
3755174294Sobrien
3756174294Sobrien	* include/am_utils.h: moved definition of am_nfs_handle to ...
3757174294Sobrien
3758174294Sobrien	* include/am_xdr_func.h: ... here. Also define AM_FHSIZE3,
3759174294Sobrien	am_nfs_fh3, AM_NFSPROC3_LOOKUP, am_nfsstat3, am_fhandle3,
3760174294Sobrien	am_mountstat3, am_mountres3_ok, am_mountres3, am_filename3,
3761174294Sobrien	am_diropargs3, am_LOOKUP3args, am_LOOKUP3resok, am_LOOKUP3resfail,
3762174294Sobrien	am_LOOKUP3res here; remove cross-platform compile helper macros
3763174294Sobrien	AMU_LOOKUP3RES_*.
3764174294Sobrien
3765174294Sobrien	* include/am_defs.h: include am_xdr_func.h before am_utils.h to
3766174294Sobrien	provide definitions for NFS filehandles
3767174294Sobrien
3768174294Sobrien	* amd/amd.h: removed declaration for xdr_mountres3
3769174294Sobrien
3770174294Sobrien	* doc/am-utils.text: minor warning fix
3771174294Sobrien
3772174294Sobrien	* BUGS: document the autoconf warnings when trying to compile
3773174294Sobrien	system header files in isolation
3774174294Sobrien
3775174294Sobrien2003-10-23  Ion Badulescu  <ionut@moisil.badula.org>
3776174294Sobrien
3777174294Sobrien	* m4/macros/struct_nfs_fh3.m4: removed, not needed
3778174294Sobrien
3779174294Sobrien	* configure.in: check if struct mounta has the optptr field;
3780174294Sobrien	removed all NFSv3-related checks, we implement everything
3781174294Sobrien	internally now
3782174294Sobrien
3783174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c (autofs_mount_2_free): don't
3784174294Sobrien	touch mnt->optptr unless HAVE_MOUNTA_OPTPTR is defined
3785174294Sobrien
3786174294Sobrien2003-10-22  Ion Badulescu  <ionut@moisil.badula.org>
3787174294Sobrien
3788174294Sobrien	* m4/macros/struct_nfs_fh3.m4: removed, not used anymore
3789174294Sobrien
3790174294Sobrien	* libamu/xdr_func.c (xdr_am_nfs_fh3): update xdr_am_nfs_fh3
3791174294Sobrien	comments
3792174294Sobrien
3793174294Sobrien	* configure.in: don't check for xdr_nfs_fh3 and struct nfs_fh3, we
3794174294Sobrien	always use our own
3795174294Sobrien
3796174294Sobrien2003-10-22  Ion Badulescu  <ion@guppy.limebrokerage.com>
3797174294Sobrien
3798174294Sobrien	* BUGS: document the limitations of bind mounts on Linux
3799174294Sobrien
3800131702Smbr2003-10-21  Ion Badulescu  <ionut@moisil.badula.org>
3801131702Smbr
3802174294Sobrien	* buildall: added support for -i (make install)
3803131702Smbr
3804174294Sobrien2003-10-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3805174294Sobrien
3806174294Sobrien	* NEWS: New minor port i386-pc-solaris2.10 (Solaris 10).
3807174294Sobrien	* INSTALL: Mention its test status.
3808174294Sobrien
3809174294Sobrien2003-10-16  Erez Zadok  <ezk@cs.sunysb.edu>
3810174294Sobrien
3811174294Sobrien	* amd/ops_nfs.c (nfs_init): declare as static to match forward
3812174294Sobrien	definition at top of file.
3813174294Sobrien
3814174294Sobrien	* conf/nfs_prot/nfs_prot_{hpux11, netbsd1_4,openbsd,aix5_2}.h:
3815174294Sobrien	added missing definitions for LOOKUP3res, diropargs3, etc.
3816174294Sobrien
3817174294Sobrien2003-10-15  Erez Zadok  <ezk@cs.sunysb.edu>
3818174294Sobrien
3819174294Sobrien	* libamu/xdr_func.c (xdr_LOOKUP3res, xdr_am_nfs_fh3),
3820174294Sobrien	libamu/mount_fs.c (compute_nfs_args), amd/ops_nfs.c
3821174294Sobrien	(got_nfs_fh_mount, got_nfs_fh_webnfs, prime_nfs_fhandle_cache,
3822174294Sobrien	webnfs_lookup), amd/amfs_host.c (fetch_fhandle): Attempt to
3823174294Sobrien	cleanup some inconsistencies with how we treat NFSv3 file handles.
3824174294Sobrien	Whenever we need to get data out of a filehandle given to us, we
3825174294Sobrien	assume that it uses the OS's native fhandle structure
3826174294Sobrien	(often struct nfs_fh3).  When we store the fhandle data for our
3827174294Sobrien	own use, however, we store it in one of two ways.  The first, is
3828174294Sobrien	that we use the system's default nfs_fh3 structure; the second is
3829174294Sobrien	that we define out own struct am_nfs_fh3 in nfs_prot.h (and go
3830174294Sobrien	through an elaborate autoconf song-and-dance to "discover" it as a
3831174294Sobrien	native fh3 handle structure).  It appears that we do the latter,
3832174294Sobrien	instead of using the system's default fhandle structure, simply to
3833174294Sobrien	avoid extra malloc's and free's, because whereas nfsv2's fhandle
3834174294Sobrien	structure is a simple 32-byte buffer, nfsv3's fhandle structures
3835174294Sobrien	often just define a "char *" for the fhandle data, and the caller
3836174294Sobrien	must malloc/free the space inside as needed.  Our code was never
3837174294Sobrien	written with constructor/destructor callbacks for these nfsv3
3838174294Sobrien	filehandles.  Moreover, we carefully wrote our own am_nfs_fh3
3839174294Sobrien	structure so IT JUST SO HAPPENS to align with most (hopefully all)
3840174294Sobrien	of the fhandle structures for v3: first four bytes are the length
3841174294Sobrien	fields and the next four bytes are the fhandle data.  Sigh.
3842174294Sobrien	Having this inconsistent use of v3 filehandles can be a real bear,
3843174294Sobrien	because we simply cannot avoid using the system's default fhandle
3844174294Sobrien	structure indirectly, through things like diropargs3 in
3845174294Sobrien	xdr_diropargs3(), which has inside of it a reference to the
3846174294Sobrien	system's default nfs_fh3 structure.  ANYWAY, the current fix I've
3847174294Sobrien	come up with is to generalize the way we dereference field names
3848174294Sobrien	within the nfs_fh3 structure (whether ours or the system's) and
3849174294Sobrien	the same for the system's LOOKUP3res structure.  I'm not pleased
3850174294Sobrien	with this fix; I'd rather we don't use our own am_nfs_fh3
3851174294Sobrien	structure at all.
3852174294Sobrien
3853174294Sobrien	* libamu/xdr_func.c (xdr_am_nfs_fh3): always define this
3854174294Sobrien	function if we have NFS3, because we often use our own,
3855174294Sobrien	incompatible am_nfs_fh3 structure.
3856174294Sobrien
3857174294Sobrien	* include/am_xdr_func.h: We cannot use the native system's
3858174294Sobrien	xdr_nfs_fh3 because we are defining our own incompatible
3859174294Sobrien	am_hfs_fh3 structure for some systems.
3860174294Sobrien
3861174294Sobrien	* include/am_xdr_func.h: Define default values for field names of
3862174294Sobrien	struct nfs_fh3 and LOOKUP3res.
3863174294Sobrien
3864174294Sobrien	* doc/am-utils.texi (debug_options Parameter): minor typo fixed.
3865174294Sobrien
3866174294Sobrien	* conf/nfs_prot/nfs_prot_freebsd3.h: FreeBSD uses different fields
3867174294Sobrien	names for struct nfs_fh3 and LOOKUP3res, so override the default
3868174294Sobrien	names here.
3869174294Sobrien
3870174294Sobrien	* configure.in: AMU_CHECK_FS_MNTENT(nfs3) test before
3871174294Sobrien	AMU_STRUCT_NFS_FH3, because the latter depends on the former.
3872174294Sobrien
3873174294Sobrien	* amd/ops_nfs.c (prime_nfs_fhandle_cache): add {} to disambiguate
3874174294Sobrien	and clarify if-the-else clauses.
3875174294Sobrien
3876174294Sobrien2003-10-13  Ion Badulescu  <ionut@moisil.badula.org>
3877174294Sobrien
3878174294Sobrien	* amd/get_args.c (get_version_string): change "Built by" to
3879174294Sobrien	"Configured by", and add a new "Built by" line using the variables
3880174294Sobrien	below
3881174294Sobrien
3882174294Sobrien	* m4/update_build_version (vers): add BUILD_USER, BUILD_HOST, and
3883174294Sobrien	BUILD_DATE to build_version.h
3884174294Sobrien
3885174294Sobrien	* amd/mntfs.c (locate_mntfs): fix restarted filesystems: mf_fo
3886174294Sobrien	must be initialized even for them, otherwise we lose opt_sublink
3887174294Sobrien	(and perhaps other options as well). Report from Rainer Orth.
3888174294Sobrien
3889174294Sobrien	* amd/amfs_generic.c (amfs_bgmount): The fix for the mf_fo NULL
3890174294Sobrien	pointer dereferencing was a bit too aggressive and could end up
3891174294Sobrien	not processing the sublink option if the filesystem was already
3892174294Sobrien	mounted.
3893174294Sobrien
3894174294Sobrien2003-10-11  Ion Badulescu  <ionut@moisil.badula.org>
3895174294Sobrien
3896174294Sobrien	Fix restarted filesystem by disabling the amfs_inherit filesystem
3897174294Sobrien	and moving the restarting logic into the generic code. The old
3898174294Sobrien	code is still there, will be removed sometime in the near future.
3899174294Sobrien
3900174294Sobrien	* amd/mntfs.c (locate_mntfs): disable amfs_inherit and simply
3901174294Sobrien	return the pointer to the restarted filesystem
3902174294Sobrien	(free_mntfs): check for the MFF_RESTART flag instead of the
3903174294Sobrien	amfs_inherit ops
3904174294Sobrien
3905174294Sobrien	* amd/autil.c (mf_mounted): remove the MFF_RESTART flag once the
3906174294Sobrien	filesystem is in use
3907174294Sobrien
3908174294Sobrien	* amd/amfs_nfsx.c (amfs_nfsx_init): only call fs_init() if the
3909174294Sobrien	filesystem is not being restarted
3910174294Sobrien	(amfs_nfsx_remount): if the filesystem is already mounted,
3911174294Sobrien	short-circuit the code and just continue
3912174294Sobrien
3913174294Sobrien	* amd/amfs_generic.c (amfs_bgmount): only call fs_init() if the
3914174294Sobrien	filesystem is not being restarted; remove hack that was used to
3915174294Sobrien	work around an amfs_inherit problem
3916174294Sobrien
3917174294Sobrien2003-10-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3918174294Sobrien
3919174294Sobrien	Use WebNFS to obtain file handles for mount(2).
3920174294Sobrien
3921174294Sobrien	* NEWS: Document WebNFS support.
3922174294Sobrien
3923174294Sobrien	* configure.in: Check for public mount option.
3924174294Sobrien	* include/am_compat.h (MNTTAB_OPT_PUBLIC): Define if missing.
3925174294Sobrien	* doc/am-utils.texi (opts Option): Renamed webnfs to public,
3926174294Sobrien	update description.
3927174294Sobrien
3928174294Sobrien	* amd/amd.h (FSF_WEBNFS): New mntfs flag.
3929174294Sobrien	* include/am_utils.h (RPC_XID_WEBNFS): New XID type.
3930174294Sobrien
3931174294Sobrien	* amd/amfs_host.c (amfs_host_mount, amfs_host_umounted): Reject
3932174294Sobrien	WebNFS mount/umount attempts.
3933174294Sobrien	* amd/ops_nfs.c (got_nfs_fh_mount): Renamed from got_nfs_fh.
3934174294Sobrien	(got_nfs_fh_webnfs): New function.
3935174294Sobrien	(flush_nfs_fhandle_cache): Don't invalidate port for WebNFS servers.
3936174294Sobrien	(prime_nfs_fhandle_cache): Likewise.
3937174294Sobrien	Remove unconditional return of public file handle for WebNFS, but
3938174294Sobrien	get NFS file handles via mountd or WebNFS instead.
3939174294Sobrien	(webnfs_lookup): New function.
3940174294Sobrien	(nfs_umounted): Don't inform mountd if MFF_WEBNFS.
3941174294Sobrien	* amd/rpc_fwd.c (fwd_packet, fwd_reply): Send/receive WebNFS
3942174294Sobrien	packets.
3943174294Sobrien	* amd/srvr_nfs.c (recompute_portmap): Don't contact portmap for
3944174294Sobrien	WebNFS servers.
3945174294Sobrien	Mention host in info message.
3946174294Sobrien	(find_nfs_srvr): Handle public mount option.
3947174294Sobrien	Prefer NFSv3/tcp if the client supports it.
3948174294Sobrien	Allow port mount option to override default or result from portmap
3949174294Sobrien	lookup.
3950174294Sobrien
3951174294Sobrien	* libamu/xdr_func.c (xdr_diropargs3, xdr_filename3,
3952174294Sobrien	xdr_LOOKUP3args, xdr_LOOKUP3res, xdr_LOOKUP3resfail,
3953174294Sobrien	xdr_LOOKUP3resok, xdr_nfs_fh3, xdr_nfsstat3): New functions.
3954174294Sobrien	* include/am_xdr_func.h: Declare them.
3955174294Sobrien	* configure.in: Check for them.
3956174294Sobrien	* conf/nfs_prot/nfs_prot_linux.h: Provide missing NFSv3
3957174294Sobrien	definitions and types.
3958174294Sobrien
3959174294Sobrien2003-10-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3960174294Sobrien
3961174294Sobrien	Support IRIX 6 private mount option.
3962174294Sobrien
3963174294Sobrien	* configure.in (AC_CHECK_MNTTAB_OPTS): Check for private option
3964174294Sobrien	name string.
3965174294Sobrien	(AC_CHECK_MNT2_NFS_OPTS): Check for private NFS mount option (IRIX 6).
3966174294Sobrien	* aux/macros/header_templates.m4 (MNTTAB_OPT_PRIVATE,
3967174294Sobrien	MNT2_NFS_OPT_PRIVATE): Provide templates.
3968174294Sobrien	* include/am_compat.h (MNTTAB_OPT_PRIVATE): Define if missing.
3969174294Sobrien	* doc/am-utils.texi (opts Option): Document it.
3970174294Sobrien
3971174294Sobrien2003-10-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3972174294Sobrien
3973174294Sobrien	* doc/am-utils.texi (opts Option): Fix Tru64 UNIX name in proplist
3974174294Sobrien	mount option.
3975174294Sobrien
3976174294Sobrien2003-10-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3977174294Sobrien
3978174294Sobrien	* libamu/mount_fs.c (compute_nfs_args) [HAVE_NFS_ARGS_T_FH_LEN]:
3979174294Sobrien	Don't reference removed fh3.
3980174294Sobrien
3981174294Sobrien2003-10-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3982174294Sobrien
3983174294Sobrien	* NEWS: New minor port sparc-sun-solaris2.10 (Solaris 10).
3984174294Sobrien
3985174294Sobrien	* INSTALL: Mention test status of various ports.
3986174294Sobrien	Describe IRIX 6 autofs status.
3987174294Sobrien
3988174294Sobrien2003-10-09  Ion Badulescu  <ionut@moisil.badula.org>
3989174294Sobrien
3990174294Sobrien	* NEWS: updated
3991174294Sobrien
3992174294Sobrien	* amd/amfs_generic.c (amfs_bgmount): don't use mf_fo until after
3993174294Sobrien	we've done all the tests and we know we have a valid and mountable
3994174294Sobrien	mntfs. Otherwise we could end up dereferencing null pointers.
3995174294Sobrien
3996174294Sobrien	* amd/amd.h: fixed a copy&paste comment bug
3997174294Sobrien
3998174294Sobrien	* amd/am_ops.c (ops_match): minor code cleanup
3999174294Sobrien
4000174294Sobrien	* doc/am-utils.texi: fixed various typos; added warning about the
4001174294Sobrien	racy nature of nfsx; removed duplicated listing of debug options;
4002174294Sobrien	added paragraph about signals supported by hlfsd; removed the long
4003174294Sobrien	list of (maybe) supported platforms since it duplicates the list
4004174294Sobrien	in INSTALL.
4005174294Sobrien
4006174294Sobrien2003-10-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4007174294Sobrien
4008174294Sobrien	Simplify FD_SET etc. use.
4009174294Sobrien
4010174294Sobrien	* include/am_defs.h (FD_SET, FD_ISSET, FD_CLR, FD_ZERO): Provide
4011174294Sobrien	if missing.
4012174294Sobrien	(rpc_pending_now, run_rpc): Use them.
4013174294Sobrien	* configure.in: Check for fds_bits field in fd_set.
4014174294Sobrien	* amd/nfs_start.c (run_rpc): Use it.
4015174294Sobrien
4016174294Sobrien2003-10-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4017174294Sobrien
4018174294Sobrien	Improve RPC XID handling.
4019174294Sobrien
4020174294Sobrien	* amd/rpc_fwd.c (fwd_packet, fwd_reply): Always log xid.
4021174294Sobrien	Convert xid to/from host/network byte order.
4022174294Sobrien
4023174294Sobrien2003-10-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4024174294Sobrien
4025174294Sobrien	Use NFS V2/V3 file handles instead of mount results.
4026174294Sobrien
4027174294Sobrien	* include/am_utils.h (am_nfs_fhandle): Use NFS V2/V3 file handles
4028174294Sobrien	only, not MOUNTPROC_MNT results.
4029174294Sobrien	* amd/amfs_host.c (fetch_fhandle): Use local variables to store
4030174294Sobrien	MOUNTPROC_MNT results.
4031174294Sobrien	* amd/autil.c (amfs_mount): Use new am_nfs_fhandle_t.
4032174294Sobrien	* amd/ops_nfs.c (struct fh_cache): New member fh_status.
4033174294Sobrien	(got_nfs_fh): Use local variables to store MOUNTPROC_MNT results.
4034174294Sobrien	Store MOUNTPROC_MNT errors in fh_status.
4035174294Sobrien	(prime_nfs_fhandle_cache): Get fh_error from fh_status.
4036174294Sobrien	* hlfsd/hlfsd.c (main): Use new am_nfs_fhandle_t.
4037174294Sobrien	* libamu/mount_fs.c (compute_nfs_args): Copy NFS V2/V3 file
4038174294Sobrien	handles straight from new am_nfs_fhandle_t.
4039174294Sobrien
4040174294Sobrien2003-10-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4041174294Sobrien
4042174294Sobrien	* amd/clock.c (CID_ALLOC): Remove unused argument.
4043174294Sobrien	(timeout): Likewise.
4044174294Sobrien
4045174294Sobrien	* amd/ops_nfs.c (FHID_ALLOC): Remove unused argument.
4046174294Sobrien	(prime_nfs_fhandle_cache): Likewise.
4047174294Sobrien	(call_mountd): Use UDPMSGSIZE instead of magic constant.
4048174294Sobrien
4049174294Sobrien	* amd/rpc_fwd.c (XID_ALLOC): Remove unused argument.
4050174294Sobrien	(fwd_packet): Likewise.
4051174294Sobrien	Handle TLOOK error from t_rcvudata().
4052174294Sobrien
4053174294Sobrien2003-09-30  Ion Badulescu  <ionut@moisil.badula.org>
4054174294Sobrien
4055174294Sobrien	* NEWS: updated
4056174294Sobrien
4057174294Sobrien	* libamu/mount_fs.c (mount_fs): don't try to recreate the mount
4058174294Sobrien	point if the mount fails with ENOENT: in the best case we would be
4059174294Sobrien	papering over a bug, and in the worst case we could cause a
4060174294Sobrien	deadlock (with autofs). If there are races, they need to be
4061174294Sobrien	exposed and fixed properly.
4062174294Sobrien
4063174294Sobrien	* conf/autofs/autofs_solaris_v1.h,
4064174294Sobrien	  conf/autofs/autofs_solaris_v2_v3.h,
4065174294Sobrien	  conf/autofs/autofs_linux.h: (AUTOFS_NFSX_FS_FLAGS): autofs
4066174294Sobrien	semantics don't allow us to mount nfsx directly onto an autofs
4067174294Sobrien	mountpoint, so disallow it
4068174294Sobrien
4069174294Sobrien	* amd/amfs_nfsx.c (amfs_nfsx_match): more restrictive sanity check
4070174294Sobrien	to avoid trying to memmove(foo, bar, (unsigned)-1) due to invalid
4071174294Sobrien	map entries...
4072174294Sobrien	(amfs_nfsx_cont): amfs_retry does most of the cleanup work for us
4073174294Sobrien	in the upper layer, so don't do anything else beside wakeup() on
4074174294Sobrien	success
4075174294Sobrien	(amfs_nfsx_remount): only create the mountpoints as we need them,
4076174294Sobrien	avoids creating them on the wrong filesystem in the case of
4077174294Sobrien	hierarchical mounts; fix crash-generating typo (m should really be
4078174294Sobrien	mf and I swear I hate single-character variable names)
4079174294Sobrien
4080174294Sobrien	* amd/amfs_generic.c (amfs_cont): one more dlog
4081174294Sobrien	(amfs_bgmount): amazingly enough, even foreground mounts can be
4082174294Sobrien	backgrounded (in the case of nfsx), so account for this
4083174294Sobrien	possibility and permit retries
4084174294Sobrien
4085174294Sobrien	* m4/macros/check_autofs_style.m4 (AMU_AUTOFS_PROT_HEADER): define
4086174294Sobrien	and AC_SUBST it as ${top_builddir}/amu_autofs_prot.h
4087174294Sobrien
4088174294Sobrien	* amd/Makefile.am ($(amd_OBJECTS) $(EXTRA_amd_OBJECTS)): depend on
4089174294Sobrien	@AMU_AUTOFS_PROT_HEADER@
4090174294Sobrien
4091174294Sobrien2003-09-29  Erez Zadok  <ezk@urd.fsl.cs.sunysb.edu>
4092174294Sobrien
4093174294Sobrien	* minor new port mipsel-unknown-linux-rhPS2 (Linux on Sony
4094174294Sobrien	PlayStation 2)
4095174294Sobrien
4096174294Sobrien	* amd/srvr_nfs.c (find_nfs_srvr): don't run code that expects
4097174294Sobrien	"char protocols[]" unless MNTTAB_OPT_PROTO is defined.
4098174294Sobrien
4099174294Sobrien2003-09-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4100174294Sobrien
4101174294Sobrien	Consolidate alloca support.
4102174294Sobrien
4103174294Sobrien	* amd/amq_svc.c: Move alloca support ...
4104174294Sobrien	* include/am_defs.h: ... here.
4105174294Sobrien	* amd/conf_parse.y: Remove alloca support.
4106174294Sobrien	* fsinfo/fsi_gram.y: Likewise.
4107174294Sobrien
4108174294Sobrien2003-09-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4109174294Sobrien
4110174294Sobrien	Handle Solaris 10.
4111174294Sobrien	* m4/macros/check_nfs_prot_headers.m4
4112174294Sobrien	(AMU_CHECK_NFS_PROT_HEADERS): Don't use wildcards for
4113174294Sobrien	sunos5.[0-3], solaris 2.[0-3], there were no micro releases.
4114174294Sobrien	Explicitly match sunos5*, solaris2* for Solaris 8 and beyond.
4115174294Sobrien
4116174294Sobrien	* m4/macros/os_cflags.m4 (AMU_OS_CFLAGS): Dont use wildcards for
4117174294Sobrien	solaris2.[0-5], sunos5.[0-5], but explicitly handle Solaris 2.5
4118174294Sobrien	micro releases to cope with Solaris 2.5.1.
4119174294Sobrien	Explicitly match solaris2*, sunos5*.
4120174294Sobrien
4121174294Sobrien2003-09-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4122174294Sobrien
4123174294Sobrien	* amd/amq_svc.c: Provide alloca prerequisites.
4124174294Sobrien
4125174294Sobrien	* conf/transp/transp_tli.c (register_autofs_service): Fix typo.
4126174294Sobrien
4127174294Sobrien2003-09-23  Ion Badulescu  <ion@opteron.tower-research.com>
4128174294Sobrien
4129174294Sobrien	* minor new port: x86_64-unknown-linux-rh2.9.5AS. (Red Hat
4130174294Sobrien	Enterprise Linux 3.0 beta running on a 64-bit AMD64 platform)
4131174294Sobrien
4132174294Sobrien2003-09-22  Ion Badulescu  <ionut@buggy.badula.org>
4133174294Sobrien
4134174294Sobrien	* conf/autofs/autofs_solaris_v1.c (autofs_mount_fs): compile fix
4135174294Sobrien
4136174294Sobrien2003-09-19  Ion Badulescu  <ionut@moisil.badula.org>
4137174294Sobrien
4138174294Sobrien	* amd/amfs_nfsl.c (amfs_nfsl_match): checking opt_fs is not always
4139174294Sobrien	enough, we should lstat() the sublink if it's defined.
4140174294Sobrien	(amfs_nfsl_ffserver): ditto
4141174294Sobrien	(ALL): Removed some obsolete comments. The nfsl code is now little
4142174294Sobrien	more than a very straight-forward switch between link and nfs.
4143174294Sobrien
4144174294Sobrien	* amd/amfs_link.c (amfs_link_match): more up-to-date explanation
4145174294Sobrien	for the prepend-the-dot hack for type link; also, the sublink is
4146174294Sobrien	already normalized and absolute, so take advantage of that
4147174294Sobrien
4148174294Sobrien	* amd/amfs_generic.c (amfs_lookup_one_mntfs): the sublink is
4149174294Sobrien	already normalized and absolute, so take advantage of that
4150174294Sobrien
4151174294Sobrien	* amd/am_ops.c (ops_match): normalize the sublink here, early into
4152174294Sobrien	the matching process
4153174294Sobrien
4154174294Sobrien	* amd/autil.c (am_mounted): be consistent and accept both
4155174294Sobrien	"nounmount" and "noumount" as pseudo mount options (same as
4156174294Sobrien	"unmount" and "umount" nearby)
4157174294Sobrien
4158174294Sobrien	* amd/Makefile.am (build_version.h): fixed dependencies (depends
4159174294Sobrien	on amd_OBJECTS, not OBJECTS -- which doesn't even exist)
4160174294Sobrien
4161174294Sobrien2003-09-19  Erez Zadok  <ezk@dhcp8.fsl.cs.sunysb.edu>
4162174294Sobrien
4163174294Sobrien	* amd/amq_subr.c (amqproc_export_1_svc): force double casting to
4164174294Sobrien	avoid gcc-3.3 complaints on Solaris 9 about "dereferencing
4165174294Sobrien	type-punned pointer will break strict-aliasing rules".
4166174294Sobrien
4167174294Sobrien2003-09-16  Ion Badulescu  <ionut@moisil.badula.org>
4168174294Sobrien
4169174294Sobrien	* Released beta version 6.1b4
4170174294Sobrien
4171174294Sobrien2003-09-15  Ion Badulescu  <ionut@moisil.badula.org>
4172174294Sobrien
4173174294Sobrien	* doc/am-utils.texi (opts Option): removed documentation for old
4174174294Sobrien	ignore_portmapper mount option, documented the new webnfs option
4175174294Sobrien
4176174294Sobrien	* NEWS: webnfs support
4177174294Sobrien
4178174294Sobrien	* amd/srvr_nfs.c (find_nfs_srvr): set MFF_WEBNFS if the "webnfs"
4179174294Sobrien	(former "ignore_portmapper") mount option is present
4180174294Sobrien
4181174294Sobrien	* amd/ops_nfs.c (prime_nfs_fhandle_cache): generate a public
4182174294Sobrien	filehandle (all zeros) if MFF_WEBNFS is set
4183174294Sobrien	(nfs_umounted): don't talk to mountd if MFF_WEBNFS is set
4184174294Sobrien
4185174294Sobrien	* amd/amd.h (MFF_WEBNFS): new flag, obvious meaning
4186174294Sobrien
4187174294Sobrien2003-09-13  Ion Badulescu  <ionut@moisil.badula.org>
4188174294Sobrien
4189174294Sobrien	* amd/srvr_nfs.c: renamed np_xid to global_xid; sanitized the
4190174294Sobrien	NPXID_ALLOC macro and renamed it to XID_ALLOC; renamed start_ping
4191174294Sobrien	to create_ping_payload; renamed nfs_pinged to
4192174294Sobrien	nfs_keepalive_callback; renamed nfs_timed_out to
4193174294Sobrien	nfs_keepalive_timeout; renamed nfs_srvr_port to get_mountd_port;
4194174294Sobrien	made ping_buf and ping_len arrays with one element for each
4195174294Sobrien	supported nfs version
4196174294Sobrien
4197174294Sobrien	* amd/amd.h: renamed nfs_srvr_port() to get_mountd_port()
4198174294Sobrien
4199174294Sobrien	* amd/amfs_host.c (amfs_host_init): ditto
4200174294Sobrien
4201174294Sobrien	* amd/ops_nfs.c (call_mountd): ditto
4202174294Sobrien
4203174294Sobrien2003-09-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4204174294Sobrien
4205174294Sobrien	* BUGS: Mention fix for broken Solaris 8 <rpcsvc/autofs_prot.h>
4206174294Sobrien	patches.
4207174294Sobrien
4208174294Sobrien2003-08-31  Erez Zadok  <ezk@filer.fsl.cs.sunysb.edu>
4209174294Sobrien
4210174294Sobrien	* amd/autil.c (strealloc): don't call malloc_verify() unless it
4211174294Sobrien	exists.
4212174294Sobrien
4213174294Sobrien	* configure.in: move "OPTION PROCESSING" section (opt_debug etc.)
4214174294Sobrien	after we figure out PROG_CC and other compiler features, because
4215174294Sobrien	some of the option processing macros need a compiler to function.
4216174294Sobrien
4217174294Sobrien	* libamu/xutil.c: don't define variables that won't be used unless
4218174294Sobrien	mallinfo() and malloc_verify() exist.
4219174294Sobrien	(real_plog): don't call checkup_mem unless
4220174294Sobrien	mallocinfo() and malloc_verify() exist.
4221174294Sobrien	(checkup_mem): don't define this function unless mallocinfo() and
4222174294Sobrien	malloc_verify() exist.
4223174294Sobrien
4224174294Sobrien	* m4/macros/opt_debug.m4: check for functions malloc_verify and
4225174294Sobrien	mallinfo in general libraries and then in libmapmalloc and
4226174294Sobrien	libmalloc.  These seem to have disappeared in FreeBSD 5.x.
4227174294Sobrien
4228174294Sobrien	* libamu/xutil.c (dxfree): print pointer using %p
4229174294Sobrien
4230174294Sobrien2003-08-29  Erez Zadok  <ezk@a-opendarwin.fsl.cs.sunysb.edu>
4231174294Sobrien
4232174294Sobrien	* configure.in: start 6.1b4-pre officially (belated)
4233174294Sobrien
4234174294Sobrien	* minor new port: i686-apple-darwin6.6
4235174294Sobrien
4236174294Sobrien2003-08-27  Ion Badulescu  <ionut@moisil.badula.org>
4237174294Sobrien
4238174294Sobrien	* conf/autofs/autofs_solaris_v1.c: convert relative targets to
4239174294Sobrien	absolute paths when using lofs mounts
4240174294Sobrien
4241174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c: ditto
4242174294Sobrien
4243174294Sobrien	* conf/autofs/autofs_linux.c: ditto
4244174294Sobrien
4245119679Smbr2003-08-27  Ion Badulescu  <ionut@buggy.badula.org>
4246119679Smbr
4247174294Sobrien	* README.autofs: added a paragraph about the resource consumption
4248174294Sobrien	of auto maps over autofs
4249119679Smbr
4250174294Sobrien	* amd/amfs_generic.c (amfs_lookup_one_mntfs): moved the setting of
4251174294Sobrien	the MFF_IS_AUTOFS flag from init_mntfs() to
4252174294Sobrien	amfs_lookup_one_mntfs(), where it belongs
4253174294Sobrien
4254174294Sobrien	* amd/mntfs.c (init_mntfs): ditto
4255174294Sobrien
4256174294Sobrien2003-08-27  Ion Badulescu  <ion@guppy.limebrokerage.com>
4257174294Sobrien
4258174294Sobrien	* amd/ops_nfs.c (got_nfs_fh): make the error EACCES if we are
4259174294Sobrien	denied a filehandle by the server (used to be EIO)
4260174294Sobrien
4261174294Sobrien2003-08-27  Erez Zadok  <ezk@a-bsdi42.fsl.cs.sunysb.edu>
4262174294Sobrien
4263174294Sobrien	* conf/nfs_prot/nfs_prot_bsdi3.h: support na_uid and na_gid.
4264174294Sobrien
4265174294Sobrien2003-08-27  Ion Badulescu  <ionut@moisil.badula.org>
4266174294Sobrien
4267174294Sobrien	* conf/autofs/autofs_linux.c (autofs_mount_succeeded): force
4268174294Sobrien	daemon-initiated timeouts on autofs filesystems, since apparently
4269174294Sobrien	they appear as "always busy" to the kernel-based expiration routine
4270174294Sobrien
4271174294Sobrien2003-08-26  Ion Badulescu  <ionut@buggy.badula.org>
4272174294Sobrien
4273174294Sobrien	* NEWS: updated
4274174294Sobrien
4275174294Sobrien	* conf/autofs/autofs_linux.h (AUTOFS_LINK_FS_FLAGS): remove
4276174294Sobrien	FS_ON_AUTOFS
4277174294Sobrien	(AUTOFS_LINKX_FS_FLAGS): ditto
4278174294Sobrien
4279174294Sobrien	* conf/autofs/autofs_solaris_v1.h (AUTOFS_LINK_FS_FLAGS): remove
4280174294Sobrien	FS_ON_AUTOFS
4281174294Sobrien	(AUTOFS_LINKX_FS_FLAGS): ditto
4282174294Sobrien
4283174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.h (AUTOFS_LINK_FS_FLAGS): remove
4284174294Sobrien	FS_ON_AUTOFS
4285174294Sobrien	(AUTOFS_LINKX_FS_FLAGS): ditto
4286174294Sobrien
4287174294Sobrien	* amd/amfs_generic.c (amfs_lookup_one_mntfs): don't modify the
4288174294Sobrien	original opt_fs, instead store the new mount point for autofs in a
4289174294Sobrien	temporary variable and pass it around. Fixes a problem with the
4290174294Sobrien	link side of nfsl.
4291174294Sobrien
4292174294Sobrien2003-08-25  Ion Badulescu  <ionut@moisil.badula.org>
4293174294Sobrien
4294174294Sobrien	* NEWS: updated
4295174294Sobrien
4296174294Sobrien	* amd/ops_nfs.c (prime_nfs_fhandle_cache): use get_mntfs_wchan to
4297174294Sobrien	initialize the fh_wchan member of the cache entry
4298174294Sobrien	(prime_nfs_fhandle_cache): use get_mntfs_wchan for the wchan_t
4299174294Sobrien	argument of call_mountd()
4300174294Sobrien
4301174294Sobrien	* amd/map.c (free_map_if_success): use get_mntfs_wchan for the
4302174294Sobrien	wchan_t argument of wakeup()
4303174294Sobrien
4304174294Sobrien	* amd/amfs_nfsx.c (amfs_nfsx_cont): use get_mntfs_wchan for the
4305174294Sobrien	wchan_t argument of wakeup_task() and wakeup()
4306174294Sobrien
4307174294Sobrien	* amd/amfs_host.c (amfs_host_init): use get_mntfs_wchan for the
4308174294Sobrien	wchan_t argument of nfs_srvr_port()
4309174294Sobrien
4310174294Sobrien	* amd/amfs_generic.c (ALL): use get_mntfs_wchan for the wchan_t
4311174294Sobrien	argument of sched_task() and wakeup()
4312174294Sobrien	(amfs_retry): minor cleanup
4313174294Sobrien	(amfs_bgmount): call nfs_quick_reply on failure
4314174294Sobrien
4315174294Sobrien	* amd/sched.c (get_mntfs_wchan): new function which calls the
4316174294Sobrien	member function get_wchan if defined, otherwise returns the mntfs
4317174294Sobrien	pointer itself
4318174294Sobrien
4319174294Sobrien	* amd/amfs_inherit.c (amfs_inherit_get_wchan): new function,
4320174294Sobrien	calls get_mntfs_wchan() on the inherited filesystem
4321174294Sobrien
4322174294Sobrien	* amd/amfs_*.c, amd/ops_*.c: initialize the new get_wchan member
4323174294Sobrien	of the ops to 0
4324174294Sobrien
4325174294Sobrien	* amd/amd.h: new function type vget_wchan
4326174294Sobrien	(struct mntfs): new member get_wchan which returns the waiting
4327174294Sobrien	channel associated with the mntfs (normally itself)
4328174294Sobrien
4329174294Sobrien2003-08-22  Ion Badulescu  <ion@guppy.limebrokerage.com>
4330174294Sobrien
4331174294Sobrien	* conf/mount/mount_linux.c (parse_opts): minor cleanup
4332174294Sobrien
4333174294Sobrien	* conf/autofs/autofs_linux.c (autofs_handle_fdset): added missing
4334174294Sobrien	break in case autofs_ptype_expire_multi
4335174294Sobrien
4336174294Sobrien2003-08-22  Ion Badulescu  <ionut@moisil.badula.org>
4337174294Sobrien
4338174294Sobrien	* conf/autofs/autofs_solaris_v1.h: undefine autofs support if
4339174294Sobrien	autofs_args_t cannot be determined (hopefully fixes a reported
4340174294Sobrien	IRIX 6.5.4 problem).
4341174294Sobrien
4342174294Sobrien	* conf/autofs/autofs_solaris_v1.c: wrap entire file in #ifdef
4343174294Sobrien	HAVE_FS_AUTOFS / #endif (see above)
4344174294Sobrien
4345174294Sobrien	* conf/autofs/autofs_linux.h: undefine autofs support if the
4346174294Sobrien	necessary header files are not found (fixes a reported RedHat 6.2
4347174294Sobrien	Sparc problem).
4348174294Sobrien
4349174294Sobrien	* conf/autofs/autofs_linux.c: wrap entire file in #ifdef
4350174294Sobrien	HAVE_FS_AUTOFS / #endif (see above)
4351174294Sobrien
4352174294Sobrien	* libamu/mount_fs.c (compute_nfs_args): only use MNT2_NFS_OPT_SOFT
4353174294Sobrien	if autoconf detected it (fixes a reported RedHat 6.2 Alpha problem).
4354174294Sobrien
4355174294Sobrien	* amd/map.c (unmount_mp, unmount_exported): move the code that
4356174294Sobrien	changes the fattr from NFLNK to NFDIR from unmount_mp to
4357174294Sobrien	unmount_exported, it was causing troubles (ESTALE) after failed
4358174294Sobrien	unmounts. This is still very very unclean, but it's the same as the
4359174294Sobrien	old 6.0 code.
4360174294Sobrien
4361119679Smbr2003-08-22  Nick Williams <Nick.Williams@morganstanley.com>
4362119679Smbr
4363119679Smbr	* amd/info_ldap.c (amu_ldap_init): don't try to pass a null
4364119679Smbr	pointer as a string to plog, Solaris (and other OS's) don't like
4365119679Smbr	it and will dump core.
4366119679Smbr
4367174294Sobrien2003-08-13  Ion Badulescu  <ion@guppy.limebrokerage.com>
4368174294Sobrien
4369174294Sobrien	* amd/amd.h: introduced two new types, wchan_t and opaque_t, as
4370174294Sobrien	aliases of voidp. This makes reading the code easier on the eyes. :)
4371174294Sobrien
4372174294Sobrien	* ALL: replace various instances of voidp with wchan_t and
4373174294Sobrien	opaque_t, as appropriate
4374174294Sobrien
4375174294Sobrien2003-08-13  Ion Badulescu  <ionut@nicu.badula.org>
4376174294Sobrien
4377174294Sobrien	* NEWS, configure.in: bumped version up to 6.1b4-pre
4378174294Sobrien
4379174294Sobrien2003-08-13  Ion Badulescu  <ionut@moisil.badula.org>
4380174294Sobrien
4381174294Sobrien	* Released beta version 6.1b3
4382174294Sobrien
4383174294Sobrien2003-08-13  Ion Badulescu  <ion@guppy.limebrokerage.com>
4384174294Sobrien
4385174294Sobrien	* conf/autofs/autofs_linux.c (autofs_mount_fs): HACK: always use
4386174294Sobrien	symlinks for host mounts; assorted fixes for the symlink mode
4387174294Sobrien
4388174294Sobrien2003-08-05  Ion Badulescu  <ionut@moisil.badula.org>
4389174294Sobrien
4390174294Sobrien	* conf/umount/umount_default.c (umount_fs): enable space hack
4391174294Sobrien	handling for autofs v1
4392174294Sobrien
4393174294Sobrien	* amd/map.c (get_first_exported_ap, get_next_exported_ap): new
4394174294Sobrien	functions that facilitate iterating through the list of
4395174294Sobrien	mountpoints
4396174294Sobrien
4397174294Sobrien	* amd/amfs_union.c (amfs_union_mounted): use get_first_exported_ap
4398174294Sobrien	and get_next_exported_ap
4399174294Sobrien
4400174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c (autofs_unmount_2_req): ditto
4401174294Sobrien
4402174294Sobrien2003-08-04  Erez Zadok  <ezk@ulkesh.dyn.optonline.net>
4403174294Sobrien
4404174294Sobrien	* configure.in: check if system stores mount tables in files
4405174294Sobrien	(usually in /etc), and configure couldn't find a definition for
4406174294Sobrien	either struct mntent or struct mnttab.  If so, abort configure
4407174294Sobrien	because this could be a new/misconfigured system, or a bug in
4408174294Sobrien	am-utils.
4409174294Sobrien
4410174294Sobrien2003-08-04  Ion Badulescu  <ionut@moisil.badula.org>
4411174294Sobrien
4412174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c (autofs_umount_fs): fix
4413174294Sobrien	compile warning
4414174294Sobrien
4415174294Sobrien2003-08-04  Ion Badulescu  <ionut@buggy.badula.org>
4416174294Sobrien
4417174294Sobrien	* conf/autofs/autofs_linux.c (autofs_mount_fs): don't call
4418174294Sobrien	ops->mount_fs() for an already mounted filesystem
4419174294Sobrien	(autofs_umount_fs): only call ops->umount_fs() if we're holding
4420174294Sobrien	the last reference to the filesystem
4421174294Sobrien
4422174294Sobrien	* conf/autofs/autofs_solaris_v1.c (autofs_mount_fs): ditto
4423174294Sobrien	(autofs_umount_fs): ditto
4424174294Sobrien
4425174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c (autofs_mount_fs): ditto
4426174294Sobrien	(autofs_umount_fs): ditto
4427174294Sobrien
4428174294Sobrien	* amd/amfs_generic.c (amfs_lookup_mntfs): remove the shortcut for
4429174294Sobrien	already-mounted filesystems
4430174294Sobrien	(amfs_cont): only release the autofs_fh if the filesystem is not
4431174294Sobrien	mounted; add another comment about the NFS_SCALEDOWN hack
4432174294Sobrien	(amfs_bgmount): if the mntfs is already mounted, skip just the
4433174294Sobrien	filesystem initialization, but do call mount_node()
4434174294Sobrien
4435174294Sobrien	* amd/map.c (mount_node): always call autofs_mount_fs(), but only
4436174294Sobrien	call ops->mount_fs() if the mntfs is not yet mounted
4437174294Sobrien	(unmount_node): always call autofs_umount_fs(), but only call
4438174294Sobrien	ops->umount_fs() if the refcount on the mntfs equals 1.
4439174294Sobrien
4440174294Sobrien2003-08-02  Erez Zadok  <ezk@filer.fsl.cs.sunysb.edu>
4441174294Sobrien
4442174294Sobrien	* conf/nfs_prot/nfs_prot_openbsd.h: include <ufs/ufs/ufsmount.h>
4443174294Sobrien	here with the proper workarounds for openbsd3.3 (define MAXQUOTAS,
4444174294Sobrien	define dummy struct netexport, and include <ufs/ufs/extattr.h>
4445174294Sobrien	wrapped in _KERNEL).
4446174294Sobrien
4447174294Sobrien	* conf/nfs_prot/nfs_prot_freebsd3.h: include <ufs/ufs/ufsmount.h>
4448174294Sobrien	here with the proper workarounds for freebsd5.1 (define dummy
4449174294Sobrien	struct ufs_extattr_per_mount).
4450174294Sobrien
4451174294Sobrien	* conf/nfs_prot/nfs_prot_bsdi2.h: include <ufs/ufs/ufsmount.h>
4452174294Sobrien	here with the proper workarounds for bsdi2 (define MAXQUOTAS and
4453174294Sobrien	dummy struct netexport).
4454174294Sobrien
4455174294Sobrien	* include/mount_headers1.h: do not include <ufs/ufs/ufsmount.h>
4456174294Sobrien	here, b/c every *BSD system has some sort of problem in including
4457174294Sobrien	this header file, which includes ugly workarounds.  Inclusion of
4458174294Sobrien	this header was already moved out of am_defs.h (used to compile
4459174294Sobrien	amd), but we forgot to move it out of mount_headers1.h (used to
4460174294Sobrien	configure).  The specific inclusion of ufsmount.h is now in the OS
4461174294Sobrien	specific nfs_prot.h file.
4462174294Sobrien
4463174294Sobrien	* configure.in: if configure could not find any definition for
4464174294Sobrien	"struct nfs_args", abort configure with an explanatory message.
4465174294Sobrien	There's no point in continuing, as this could be a system bug,
4466174294Sobrien	buggy am-utils, or a new system to which am-utils wasn't ported to
4467174294Sobrien	yet.
4468174294Sobrien
4469174294Sobrien	* minor new port: i386-pc-solaris2.9
4470174294Sobrien
4471174294Sobrien2003-08-01  Ion Badulescu  <ionut@buggy.badula.org>
4472174294Sobrien
4473174294Sobrien	* doc/am-utils.texi (NFS-Link Filesystem): make the documentation
4474174294Sobrien	match the code (as well as basic logic operations: the negation of
4475174294Sobrien	'a or b' is 'not a and not b', not 'not a or not b')
4476174294Sobrien
4477174294Sobrien2003-08-01  Erez Zadok  <ezk@filer.fsl.cs.sunysb.edu>
4478174294Sobrien
4479174294Sobrien	* minor new port: i386-unknown-openbsd3.3.
4480174294Sobrien
4481174294Sobrien	* m4/macros/check_libwrap_severity.m4: new macro to check if
4482174294Sobrien	libwrap includes the integer variables deny_severity and
4483174294Sobrien	allow_severity, since some libwrap implementations do and others
4484174294Sobrien	don't.  The test tries to compile and run a simple empty main()
4485174294Sobrien	program, then the same program while defining these two variables:
4486174294Sobrien	comparing the results of the two tests, we can tell whether we
4487174294Sobrien	should define NEED_LIBWRAP_SEVERITY_VARIABLES.
4488174294Sobrien
4489174294Sobrien	* Makefile.am (EXTRA_DIST_M4): distribute new macro
4490174294Sobrien	check_libwrap_severity.m4.
4491174294Sobrien
4492174294Sobrien	* m4/macros/header_templates.m4: template for HAVE_LIBWRAP (which
4493174294Sobrien	we must define explicitly since we've overridden the
4494174294Sobrien	action-if-found in AC_CHECK_LIB(wrap).  Also template for
4495174294Sobrien	NEED_LIBWRAP_SEVERITY_VARIABLES.
4496174294Sobrien
4497174294Sobrien	* amd/amq_svc.c: if libwrap does not include the severity
4498174294Sobrien	variables, then define and initialize them here.
4499174294Sobrien
4500174294Sobrien	* amd/Makefile.am (LIBS): explicitly include @WRAPLIB@ only for
4501174294Sobrien	Amd binary.  Other am-utils binaries don't need -lwrap.
4502174294Sobrien
4503174294Sobrien	* configure.in: if libwrap is found, only define it in @WRAPLIB@,
4504174294Sobrien	so we don't automatically link every am-utils binary with -lwrap.
4505174294Sobrien	Run test for existence of severity variables in libwrap.
4506174294Sobrien
4507174294Sobrien2003-07-31  Erez Zadok  <ezk@filer.fsl.cs.sunysb.edu>
4508174294Sobrien
4509174294Sobrien	* conf/nfs_prot/nfs_prot_openbsd.h: define struct fattr fields uid
4510174294Sobrien	and gid.
4511174294Sobrien
4512174294Sobrien	* configure.in: move check for AC_CHECK_LIB(libwrap) as far down
4513174294Sobrien	as possible because on modern tcpwrapper systems such as openbsd,
4514174294Sobrien	the caller must provide two symbols: deny_severity and
4515174294Sobrien	allow_severity, which determine the logging level of rejected and
4516174294Sobrien	requested requests, respectively.  If this check happens too
4517174294Sobrien	early, then $LIBS includes -lwrap, which causes many subsequent
4518174294Sobrien	tests that need to run a compiled program to fail with missing
4519174294Sobrien	symbols.
4520174294Sobrien
4521174294Sobrien	* m4/macros/header_templates.m4: fix typo in template for
4522174294Sobrien	readdirplus.
4523174294Sobrien
4524174294Sobrien	* configure.in: check for <ufs/ufs/extattr.h> (OpenBSD 3.3)
4525174294Sobrien
4526174294Sobrien	* minor new port: i386-unknown-netbsdelf1.6.1.
4527174294Sobrien
4528174294Sobrien	* configure.in: save state before system-specific tests are run.
4529174294Sobrien
4530174294Sobrien	* m4/macros/check_gnu_getopt.m4: do NOT abort ./configure just
4531174294Sobrien	because the compiled test program failed to run.
4532174294Sobrien
4533174294Sobrien2003-08-01  Ion Badulescu  <ionut@buggy.badula.org>
4534174294Sobrien
4535174294Sobrien	* NEWS, README.autofs: updated
4536174294Sobrien
4537174294Sobrien	* libamu/mount_fs.c (mount_fs): added support for the space hack
4538174294Sobrien
4539174294Sobrien	* doc/am-utils.texi: mention than UFS/XFS/EFS/CacheFS filesystems
4540174294Sobrien	are not expired by default; correct and expand the section
4541174294Sobrien	describing the program filesystem
4542174294Sobrien
4543174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.h (AUTOFS_*_FS_FLAGS): add
4544174294Sobrien	FS_ON_AUTOFS for supported filesystems
4545174294Sobrien
4546174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c (autofs_mount_fs): call
4547174294Sobrien	mf->mount_fs()
4548174294Sobrien	(autofs_umount_fs): call mf->umount_fs()
4549174294Sobrien
4550174294Sobrien	* conf/autofs/autofs_solaris_v1.h (autofs_strdup_space_hack): add
4551174294Sobrien	prototype for malloc()
4552174294Sobrien	(AUTOFS_*_FS_FLAGS): lose the FS_MKMNT flags, add FS_ON_AUTOFS for
4553174294Sobrien	supported filesystems
4554174294Sobrien
4555174294Sobrien	* conf/autofs/autofs_solaris_v1.c (autofs_mount_fs): add support
4556174294Sobrien	for the space hack; call mf->mount_fs()
4557174294Sobrien	(autofs_umount_fs): add support for the space hack; call
4558174294Sobrien	mf->umount_fs()
4559174294Sobrien	(autofs_mount_succeeded): add support for the space hack
4560174294Sobrien
4561174294Sobrien	* conf/autofs/autofs_linux.h: lose the FS_MKMNT flags, add
4562174294Sobrien	FS_ON_AUTOFS for supported filesystems
4563174294Sobrien
4564174294Sobrien	* conf/autofs/autofs_linux.c (AUTOFS_MAX_VERSION): define to
4565174294Sobrien	AUTOFS_MAX_PROTO_VERSION instead of hardcoding to 4
4566174294Sobrien	(autofs_mounted): host mounts are now supported on all autofs
4567174294Sobrien	versions, remove the hack to turn it off on v3
4568174294Sobrien	(autofs_mount_fs): call mf->mount_fs(), create/remove mountpoints
4569174294Sobrien	as needed
4570174294Sobrien	(autofs_umount_fs): call mf->umount_fs(), remove mountpoints on
4571174294Sobrien	success
4572174294Sobrien	(ALL): use '#if AUTOFS_MAX_VERSION >= 4' instead of
4573174294Sobrien	'#ifdef autofs_ptype_expire_multi'
4574174294Sobrien
4575174294Sobrien	* amd/map.c (mount_node): autofs_mount_fs() now calls
4576174294Sobrien	mf->mount_fs() internally
4577174294Sobrien	(unmount_node): autofs_umount_fs() now calls mf->umount_fs()
4578174294Sobrien	internally
4579174294Sobrien
4580174294Sobrien	* amd/autil.c (am_mounted): minor cleanup
4581174294Sobrien
4582174294Sobrien	* amd/amfs_program.c (amfs_program_ops): added FS_MKMNT to
4583174294Sobrien	nfs_fs_flags
4584174294Sobrien
4585174294Sobrien	* amd/amfs_generic.c (amfs_lookup_one_mntfs): use the FS_ON_AUTOFS
4586174294Sobrien	flag instead of hardcoding filesystem types
4587174294Sobrien	(amfs_bgmount): better mount_type logging
4588174294Sobrien
4589174294Sobrien	* amd/amd.h (FS_ON_AUTOFS): new flag which tells the code that
4590174294Sobrien	this filesystem can be mounted directly onto an autofs mountpoint
4591174294Sobrien
4592174294Sobrien2003-07-31  Ion Badulescu  <ionut@buggy.badula.org>
4593174294Sobrien
4594174294Sobrien	* amd/amfs_nfsl.c (amfs_nfsl_umount): fix copy&paste error (was
4595174294Sobrien	calling amfs_link_ops.umount_fs() for NFS filesystems)
4596174294Sobrien	(amfs_nfsl_umounted): remove rmdirs() hack, it is now handled
4597174294Sobrien	properly elsewhere
4598174294Sobrien	(amfs_nfsl_ffserver): remove FS_MKMNT from mf_fsflags if we're
4599174294Sobrien	using link (not NFS)
4600174294Sobrien
4601174294Sobrien2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4602174294Sobrien
4603174294Sobrien	* README.autofs: Correct IRIX spelling.
4604174294Sobrien	AutoFS support exists only on IRIX 6.
4605174294Sobrien	Update IRIX 6 status.
4606174294Sobrien
4607174294Sobrien	Allow AutoFS V1 support to compile on IRIX 6.
4608174294Sobrien	* conf/autofs/autofs_solaris_v1.c (autofs_mount_1_req): Add
4609174294Sobrien	SVCXPRT * arg.
4610174294Sobrien	Remove superfluous \n from dlog messages.
4611174294Sobrien	(autofs_unmount_1_req): Likewise.
4612174294Sobrien	Switch to get_exported_ap.
4613174294Sobrien	(autofs_program_1): Invoke handlers with additional transp arg.
4614174294Sobrien	* conf/autofs/autofs_solaris_v1.h: Use autofs_args_t to define
4615174294Sobrien	autofs_fh_t, struct auto_args doesn't exist on IRIX 6.
4616174294Sobrien
4617174294Sobrien	* conf/mount/mount_irix6.c (mount_irix) [HAVE_FS_AUTOFS]: Support
4618174294Sobrien	AutoFS mounts.
4619174294Sobrien	[HAVE_FS_LOFS]: Likewise for lofs mounts.
4620174294Sobrien
4621174294Sobrien	* conf/nfs_prot/nfs_prot_irix6.h (AUTOFS_CONFTYPE): Define.
4622174294Sobrien	Don't disable AutoFS support any more.
4623174294Sobrien
4624174294Sobrien	* conf/transp/transp_sockets.c [HAVE_FS_AUTOFS && AUTOFS_PROG]
4625174294Sobrien	(register_autofs_service): Define autofs_xprt.
4626174294Sobrien
4627174294Sobrien	* m4/macros/check_autofs_style.m4 (AMU_CHECK_AUTOFS_STYLE): Update
4628174294Sobrien	Solaris 8+ comment to mention AutoFS V4.
4629174294Sobrien	(irix6*): Enable AutoFS V1 support on IRIX 6.
4630174294Sobrien
4631174294Sobrien2003-07-30  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
4632174294Sobrien
4633174294Sobrien	* NEWS, doc/am-utils.texi, scripts/amd.conf.5: revised explanation
4634174294Sobrien	of autofs_use_lofs.
4635174294Sobrien
4636174294Sobrien2003-07-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4637174294Sobrien
4638174294Sobrien	* amd/ops_efs.c (efs_mount): Replace on_autofs arg with
4639174294Sobrien	MFF_ON_AUTOFS flag.
4640174294Sobrien	(efs_umount): Likewise.
4641174294Sobrien
4642174294Sobrien2003-07-30  Erez Zadok  <ezk@filer.fsl.cs.sunysb.edu>
4643174294Sobrien
4644174294Sobrien	* conf/umount/umount_bsd44.c (umount_fs): convert to new way of
4645174294Sobrien	unmounting which takes autofs into account.
4646174294Sobrien
4647174294Sobrien2003-07-30  Ion Badulescu  <ionut@moisil.badula.org>
4648174294Sobrien
4649174294Sobrien	* ALL: renamed MFF_AUTOFS to MFF_IS_AUTOFS; removed mf_real_mount
4650174294Sobrien	hack; pass a new on_autofs argument to mount/umount function,
4651174294Sobrien	based on the MFF_ON_AUTOFS mntfs flag
4652174294Sobrien
4653174294Sobrien	* NEWS, README.autofs: updated
4654174294Sobrien
4655174294Sobrien	* scripts/amd.conf.5: document new option autofs_use_lofs
4656174294Sobrien
4657174294Sobrien	* scripts/amd.conf-sample (autofs_use_lofs): document new option
4658174294Sobrien
4659174294Sobrien	* m4/macros/check_autofs_style.m4 (am_utils_link_files): symlink
4660174294Sobrien	the autofs header as amu_autofs_prot.h instead of slurping it into
4661174294Sobrien	aux_conf.h
4662174294Sobrien
4663174294Sobrien	* libamu/mount_fs.c (mount_fs): removed old stub, renamed
4664174294Sobrien	mount_fs2 to mount_fs, added new argument on_autofs
4665174294Sobrien
4666174294Sobrien	* doc/am-utils.texi (Direct Automount Filesystem): document
4667174294Sobrien	problems with nfs direct mounts on modern kernels, document good
4668174294Sobrien	autofs support for direct mounts on Solaris
4669174294Sobrien	(autofs_use_lofs Parameter): document this new option
4670174294Sobrien	(browsable_dirs Parameter): note that mount storms are avoided
4671174294Sobrien	when using autofs
4672174294Sobrien
4673174294Sobrien	* conf/umount/umount_bsd44.c (umount_fs): removed old stub,
4674174294Sobrien	renamed umount_fs2 to umount_fs
4675174294Sobrien
4676174294Sobrien	* conf/umount/umount_osf.c (umount_fs): removed old stub,
4677174294Sobrien	renamed umount_fs2 to umount_fs, added new argument on_autofs
4678174294Sobrien
4679174294Sobrien	* conf/umount/umount_default.c (umount_fs): ditto as above; return
4680174294Sobrien	an error on ENOENT instead of faking success
4681174294Sobrien
4682174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c (autofs_lookup_2_req): much
4683174294Sobrien	simplified, now only consults the map for existance of the key and
4684174294Sobrien	returns success if key is found
4685174294Sobrien	(autofs_mount_2_req): request symlinks if CFM_AUTOFS_USE_LOFS is
4686174294Sobrien	not on;
4687174294Sobrien	(autofs_mount_2_free): implemented
4688174294Sobrien	(autofs_unmount_2_req): use get_exported_ap() instead of
4689174294Sobrien	referencing export_ap directly
4690174294Sobrien	(autofs_mount_succeeded): remove code for replying to lookup
4691174294Sobrien	requests, now only mount requests can end up here
4692174294Sobrien	(autofs_mount_failed): ditto
4693174294Sobrien
4694174294Sobrien	* conf/autofs/autofs_solaris_v1.h (AUTOFS_HOST_FS_FLAGS): removed
4695174294Sobrien	FS_AUTOFS
4696174294Sobrien	(AUTOFS_DIRECT_FS_FLAGS): added FS_DIRECTORY
4697174294Sobrien
4698174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.h (AUTOFS_HOST_FS_FLAGS): removed
4699174294Sobrien	FS_AUTOFS
4700174294Sobrien	(AUTOFS_DIRECT_FS_FLAGS): added FS_DIRECTORY
4701174294Sobrien	(AUTOFS_LINK_FS_FLAGS): added FS_MBACKGROUND
4702174294Sobrien
4703174294Sobrien	* conf/autofs/autofs_linux.c (autofs_bind_umount): new function,
4704174294Sobrien	factored out of autofs_umount_fs()
4705174294Sobrien	(autofs_mount_fs): renamed from autofs_link_mount() and expanded
4706174294Sobrien	to deal with filesystems mounted indirectly (via lofs/bind
4707174294Sobrien	mounts) on autofs and to observe the new CFM_AUTOFS_USE_LOFS flag
4708174294Sobrien	(autofs_umount_fs): ditto, from autofs_link_umount()
4709174294Sobrien
4710174294Sobrien	* conf/autofs/autofs_solaris_v1.c (autofs_mount_fs): ditto
4711174294Sobrien	* (autofs_umount_fs): ditto
4712174294Sobrien
4713174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c (autofs_mount_fs): ditto
4714174294Sobrien	* (autofs_umount_fs): ditto
4715174294Sobrien
4716174294Sobrien	* amd/opts.c: made fs_static static
4717174294Sobrien
4718174294Sobrien	* amd/ops_nfs.c: made nfs_init, nfs_match, nfs_mount, nfs_umount
4719174294Sobrien	and nfs_umounted static
4720174294Sobrien	(mount_nfs_fh): removed unnecessary arguments
4721174294Sobrien
4722174294Sobrien	* amd/ops_cachefs.c (cachefs_ops): use amfs_generic_find_srvr for
4723174294Sobrien	the ffserver method, because using NULL causes problems
4724174294Sobrien
4725174294Sobrien	* amd/ops_cdfs.c (cdfs_ops): ditto
4726174294Sobrien
4727174294Sobrien	* amd/ops_efs.c (efs_ops): ditto
4728174294Sobrien
4729174294Sobrien	* amd/ops_lofs.c (lofs_ops): ditto
4730174294Sobrien
4731174294Sobrien	* amd/ops_pcfs.c (pcfs_ops): ditto
4732174294Sobrien
4733174294Sobrien	* amd/ops_ufs.c (ufs_ops): ditto
4734174294Sobrien
4735174294Sobrien	* amd/ops_xfs.c (xfs_ops): ditto
4736174294Sobrien
4737174294Sobrien	* amd/nfs_subr.c (fh_to_mp3, fh_to_mp, mp_to_fh): moved here from
4738174294Sobrien	map.c
4739174294Sobrien
4740174294Sobrien	* amd/nfs_start.c: use get_exported_ap() instead of referencing
4741174294Sobrien	exported_ap directly
4742174294Sobrien
4743174294Sobrien	* amd/mntfs.c (locate_mntfs): new function, factored out of
4744174294Sobrien	find_mntfs
4745174294Sobrien	(locate_mntfs): special-case FS_DIRECT filesystems: for direct
4746174294Sobrien	mounts we will have two filesystems mounted on the same m/p
4747174294Sobrien	(realloc_mntfs): removed the old EZK hack for failovers
4748174294Sobrien
4749174294Sobrien	* amd/map.c (get_exported_ap): new function that returns an
4750174294Sobrien	exported_ap member by its index
4751174294Sobrien	(root_node,exported_ap,exported_ap_size,first_free_map,last_used_map):
4752174294Sobrien	made static
4753174294Sobrien	(fh_to_mp3, fh_to_mp, mp_to_fh): moved to nfs_subr.c
4754174294Sobrien	(get_root_ap): removed unused second argument
4755174294Sobrien	(unmount_mp): moved the mk_fattr(NFDIR) here from umount_exported
4756174294Sobrien	to catch more cases
4757174294Sobrien	(mount_node): call autofs_mount_fs after ops->mount_fs for autofs
4758174294Sobrien	nodes
4759174294Sobrien	(unmount_node): call autofs_umount_fs before ops->umount_fs for
4760174294Sobrien	autofs nodes
4761174294Sobrien
4762174294Sobrien	* amd/conf.c: new global option "autofs_use_lofs", takes yes/no
4763174294Sobrien	values
4764174294Sobrien
4765174294Sobrien	* amd/autil.c (amfs_mount): take an extra argument (mf)
4766174294Sobrien	(amfs_mount): call autofs_compute_mount_flags() for mounts
4767174294Sobrien	directly on autofs m/p
4768174294Sobrien	(am_unmounted): document and avoid the race between am_umounted()
4769174294Sobrien	at shutdown time and amfs_cont()
4770174294Sobrien
4771174294Sobrien	* amd/amfs_union.c (amfs_union_mounted): use get_exported_ap()
4772174294Sobrien	instead of referencing internal map variables directly
4773174294Sobrien
4774174294Sobrien	* amd/amq_subr.c (amqproc_export_1_svc): ditto
4775174294Sobrien
4776174294Sobrien	* amd/amfs_toplvl.c (amfs_toplvl_ops): removed FS_AUTOFS from
4777174294Sobrien	nfs_fs_flags
4778174294Sobrien	(amfs_toplvl_mount): pass extra argument (mf) to amfs_mount()
4779174294Sobrien	(amfs_toplvl_umount): refuse to attempt the unmount if the
4780174294Sobrien	mountpoint is not a directory
4781174294Sobrien
4782174294Sobrien	* amd/amfs_nfsx.c (amfs_nfsx_init): propagate the MFF_ON_AUTOFS
4783174294Sobrien	flag into the nfs f/s at the bottom of the stack
4784174294Sobrien
4785174294Sobrien	* amd/amfs_nfsl.c: call nfs and link member functions through
4786174294Sobrien	their respective am_ops structures, not directly
4787174294Sobrien
4788174294Sobrien	* amd/amfs_linkx.c (amfs_linkx_umount): new static stub
4789174294Sobrien
4790174294Sobrien	* amd/amfs_link.c: made amfs_link_mount() and amfs_link_umount()
4791174294Sobrien	static functions
4792174294Sobrien	(amfs_link_mount): removed call to autofs_link_mount()
4793174294Sobrien	(amfs_link_umount): removed call to autofs_link_umount()
4794174294Sobrien
4795174294Sobrien	* amd/amfs_host.c (amfs_host_ops): removed FS_AUTOFS from
4796174294Sobrien	nfs_fs_flags
4797174294Sobrien	(do_mount): removed superfluous function arguments
4798174294Sobrien
4799174294Sobrien	* amd/amfs_direct.c (amfs_direct_ops): removed FS_AUTOFS from
4800174294Sobrien	nfs_fs_flags
4801174294Sobrien
4802174294Sobrien	* amd/amfs_auto.c (amfs_auto_ops): removed FS_AUTOFS from
4803174294Sobrien	nfs_fs_flags
4804174294Sobrien	(amfs_auto_mount): pass extra argument (mf) to amfs_mount
4805174294Sobrien
4806174294Sobrien	* amd/amd.h (CFM_AUTOFS_USE_LOFS): new flag, tells amd whether to
4807174294Sobrien	use lofs-mounts or symlinks when mounting on autofs
4808174294Sobrien	(CFM_DEFAULT_FLAGS): added CFM_AUTOFS_USE_LOFS
4809174294Sobrien	(VLOOK_LOOKUP): new flag, will merely check if a key exists
4810174294Sobrien	(MFF_IS_AUTOFS): renamed from MFF_AUTOFS
4811174294Sobrien	(MFF_ON_AUTOFS): new flag, tells amd if a f/s is mounted directly
4812174294Sobrien	on an autofs m/p, or indirectly via a lofs mount/symlink
4813174294Sobrien	(fh_to_mp2): macro expanded throughout the code and removed
4814174294Sobrien	(mntfs): removed mf_real_mount hack
4815174294Sobrien	(autofs_mount_fs): renamed from autofs_link_mount
4816174294Sobrien	(autofs_umount_fs): renamed from autofs_link_umount
4817174294Sobrien	(mount_lofs): exposed
4818174294Sobrien	various other cleanups, functions/variables made static and removed
4819174294Sobrien
4820174294Sobrien	* aux_conf.h.in: removed @am_utils_autofs_style@, it is now
4821174294Sobrien	included directly as amu_autofs_prot.h
4822174294Sobrien
4823174294Sobrien2003-07-24  Erez Zadok  <ezk@whitestar.dyn.optonline.net>
4824174294Sobrien
4825174294Sobrien	* doc/am-utils.texi, scripts/amd.conf.5: document that
4826174294Sobrien	use_tcpwrappers is "yes" by default.
4827174294Sobrien
4828174294Sobrien	* amd/amd.c (init_global_options): set default global options.
4829174294Sobrien
4830174294Sobrien	* amd/amd.h (CFM_DEFAULT_FLAGS): define default options which
4831174294Sobrien	are always on (plock and use_tcpwrappers).
4832174294Sobrien
4833174294Sobrien	* scripts/amd.conf-sample: reorganize values per option so default
4834174294Sobrien	one is listed first.
4835174294Sobrien
4836174294Sobrien2003-07-23  Erez Zadok  <ezk@filer.fsl.cs.sunysb.edu>
4837174294Sobrien
4838174294Sobrien	* tasks: trim old stuff.  Discuss new parser.
4839174294Sobrien
4840174294Sobrien	* amd/conf.c (set_conf_kv): initialize the very first map in conf
4841174294Sobrien	file from global defaults.  Bug fix which was introduced after
4842174294Sobrien	conf.c code restructuring.
4843174294Sobrien
4844174294Sobrien2003-07-18  Erez Zadok  <ezk@filer.fsl.cs.sunysb.edu>
4845174294Sobrien
4846174294Sobrien	* m4/macros/header_templates.m4: template for
4847174294Sobrien	HAVE_EXTERN_HOSTS_CTL.
4848174294Sobrien
4849174294Sobrien	* include/am_defs.h: define extern for hosts_ctl() if needed.
4850174294Sobrien
4851174294Sobrien	* configure.in (AMU_CHECK_EXTERNS): check for extern definition
4852174294Sobrien	for libwrap's hosts_ctl() (FreeBSD 5.0 doesn't have it).
4853174294Sobrien
4854174294Sobrien	* m4/macros/check_extern.m4: include tcpd.h if it and libwrap exist.
4855174294Sobrien
4856174294Sobrien2003-07-18  Erez Zadok  <ezk@cs.sunysb.edu>
4857174294Sobrien
4858174294Sobrien	* hlfsd/hlfsd.h: redundant extern for mboxfile removed.
4859174294Sobrien
4860174294Sobrien	* amd/amq_svc.c (amq_program_1): only check for tcpwrappers if
4861174294Sobrien	amd.conf global option use_tcpwrappers=yes.
4862174294Sobrien
4863174294Sobrien	* scripts/amd.conf.5, scripts/amd.conf-sample (use_tcpwrappers),
4864174294Sobrien	doc/am-utils.texi (use_tcpwrappers Parameter): document new
4865174294Sobrien	amd.conf global option.
4866174294Sobrien
4867174294Sobrien	* amd/conf.c (gopt_use_tcpwrappers): define a new amd.conf global
4868174294Sobrien	option called use_tcpwrappers ("no" by default).
4869174294Sobrien
4870174294Sobrien	* amd/amq_svc.c (amqsvc_is_client_allowed): include tcpd/libwrap
4871174294Sobrien	code only if both libwrap and tcpd.h exist.
4872174294Sobrien	(amq_program_1): log warning when an Amq service client is denied,
4873174294Sobrien	and a debug message when a client is allowed.
4874174294Sobrien
4875174294Sobrien	* amd/amd.h (CFM_USE_TCPWRAPPERS): define [global] amd.conf flag.
4876174294Sobrien	(AMD_SERVICE_NAME): define AMD_SERVICE_NAME for tcpd/libwrap.
4877174294Sobrien
4878174294Sobrien	* include/am_defs.h: include tcpd.h if available and libwrap
4879174294Sobrien	available.
4880174294Sobrien
4881174294Sobrien	* configure.in: check for tcpd.h.
4882174294Sobrien
4883174294Sobrien2003-07-18  Erez Zadok  <ezk@filer.fsl.cs.sunysb.edu>
4884174294Sobrien
4885174294Sobrien	* scripts/expn.1, amd/amd.8 amq/amq.8, fixmount/fixmount.8,
4886174294Sobrien	hlfsd/hlfsd.8, scripts/expn.1: remove ".PD 0" nroff command
4887174294Sobrien	because it removes useful spaces in between paragraphs.  Based on
4888174294Sobrien	smaller patch from Philippe Troin <phil@fifi.org>.
4889174294Sobrien
4890174294Sobrien2003-07-17  Philippe Troin  <phil@fifi.org>
4891174294Sobrien
4892174294Sobrien	* amq/amq.8: Document the libwrap/amd behavior.
4893174294Sobrien
4894174294Sobrien	* amd/amq_svc.c (libwrap_check_client): New function to validate
4895174294Sobrien	an amq connection with libwrap.
4896174294Sobrien	(amq_program_1): Call libwrap_check_client() and close the
4897174294Sobrien	connection if libwrap does not allow it.
4898174294Sobrien
4899174294Sobrien	* configure.in: Check for the tcp wrappers library.
4900174294Sobrien
4901119679Smbr2003-07-17  Erez Zadok  <ezk@filer.fsl.cs.sunysb.edu>
4902119679Smbr
4903174294Sobrien	* amd/amq_subr.c (amqproc_mnttree_1_svc, amqproc_stats_1_svc,
4904174294Sobrien	amqproc_getmntfs_1_svc, xdr_amq_mount_tree), hlfsd/hlfsd.c
4905174294Sobrien	(hlfsd_init): cast pointers to void* before casting them to
4906174294Sobrien	another type, to avoid gcc-3.3 -Wall warnings.
4907174294Sobrien
4908119679Smbr	* fsinfo/*.[hc]: rename fsinfo function log() to fsi_log(), to
4909119679Smbr	avoid conflict with builtin function in gcc-3.3.
4910119679Smbr
4911174294Sobrien2003-07-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4912119679Smbr
4913174294Sobrien	* scripts/amd.conf-sample: Remove obsolete comment.
4914119679Smbr
4915174294Sobrien2003-07-16  Erez Zadok  <ezk@cs.sunysb.edu>
4916174294Sobrien
4917174294Sobrien	* amd/info_file.c (read_line): check for errors from fgets().
4918174294Sobrien	Although rare, they can occur upon disk or network failures.
4919174294Sobrien	Patch from Nick Williams <Nick.Williams@morganstanley.com>.
4920174294Sobrien
4921174294Sobrien2003-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4922174294Sobrien
4923174294Sobrien	* BUGS (Solaris 8): Update patch revisions, mention old autofs
4924174294Sobrien	patches, fix filenames and rpcgen command.
4925174294Sobrien
4926174294Sobrien2003-07-15  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
4927174294Sobrien
4928174294Sobrien	* doc/am-utils.texi (map_defaults Parameter): document new
4929174294Sobrien	map_defaults option.
4930174294Sobrien
4931174294Sobrien	* scripts/amd.conf.5: document new map_defaults option.
4932174294Sobrien
4933174294Sobrien	* scripts/amd.conf-sample (map_type): show examples of new
4934174294Sobrien	map_defaults option.
4935174294Sobrien
4936174294Sobrien	* amd/mapc.c (mapc_create): initialize mnt_map->cfm field to NULL.
4937174294Sobrien
4938174294Sobrien	* amd/get_args.c (get_args): call process_all_regular_maps().
4939174294Sobrien
4940174294Sobrien	* amd/conf.c: keep head and tail of cfm list.
4941174294Sobrien	(init_cf_map): reworked reset_cf_map.  This one doesn't reset a
4942174294Sobrien	globaly reused cfm, but rather just inherits [global] options.
4943174294Sobrien	(set_conf_kv): just store global/map options without actually
4944174294Sobrien	creating any mnt_map's.  Essentially, we now parse the whole
4945174294Sobrien	amd.conf file, and then try to process the maps one at a time.
4946174294Sobrien	(process_one_regular_map): new function to process one map, just
4947174294Sobrien	renamed from process_regular_map.
4948174294Sobrien	(process_all_regular_maps): new exported function to process all
4949174294Sobrien	maps.  No need for hacky process_last_map().
4950174294Sobrien	(find_cf_map): new exported function to return a cf_map_t given a
4951174294Sobrien	map's mount point (e.g., /home or /net).
4952174294Sobrien
4953174294Sobrien	* amd/amfs_generic.c (amfs_parse_defaults): find if amd.conf
4954174294Sobrien	specificed a map_defaults for a given map.  If so, use that
4955174294Sobrien	instead of the /defaults that came from the map itself.  Also
4956174294Sobrien	restructure code a bit so it's not one huge long "if" statement.
4957174294Sobrien
4958174294Sobrien	HACK ALERT: there's no easy way to find out what the map mount
4959174294Sobrien	point is at this point, so I am forced to initialize the
4960174294Sobrien	mnt_map->cfm field here for the first time, upon the very first
4961174294Sobrien	search for a /defaults entry in this map.  This initialization is
4962174294Sobrien	much better done in mapc_create(), but it's impossible to do that
4963174294Sobrien	there with the current code structure.
4964174294Sobrien
4965174294Sobrien	* amd/amd.h: struct cf_map becomes linked list.  struct mnt_map
4966174294Sobrien	includes pointer to cf_map_t, amd.conf defaults and options for a
4967174294Sobrien	given map. extern cleanups.
4968174294Sobrien
4969174294Sobrien2003-07-15  Erez Zadok  <ezk@filer.fsl.cs.sunysb.edu>
4970174294Sobrien
4971174294Sobrien	* amd/info_hesiod.c (hesiod_search): It's not possible to have a
4972174294Sobrien	key such as ".access" in a hesiod map as that would imply a null
4973174294Sobrien	node in the DNS tree.  So a lookup for such a key must clearly
4974174294Sobrien	fail.  With the current info_hesiod.c it does (after calling
4975174294Sobrien	hes{,iod}_resolve) but returns an error that confuses some
4976174294Sobrien	programs - eg. apache.  This patch shortcuts the process and just
4977174294Sobrien	returns ENOENT for any key starting with ".".  Patch submitted by
4978174294Sobrien	by Mark Davies <mark@mcs.vuw.ac.nz>.
4979174294Sobrien
4980174294Sobrien	* include/am_utils.h (CALLOC): redefine macro to use xzalloc, not
4981174294Sobrien	fsinfo's own xcalloc.
4982174294Sobrien
4983174294Sobrien	* fsinfo/fsi_util.c (xcalloc): remove redundant function.
4984174294Sobrien
4985174294Sobrien2003-07-14  Erez Zadok  <ezk@cs.sunysb.edu>
4986174294Sobrien
4987174294Sobrien	* include/am_compat.h (MNTTAB_OPT_XLATECOOKIE): The NetBSD
4988174294Sobrien	xlatecookie NFS option doesn't work as MNTTAB_OPT_XLATECOOKIE is
4989174294Sobrien	never defined.  Define it as needed.  Patch from Mark Davies
4990174294Sobrien	<mark@mcs.vuw.ac.nz>.
4991174294Sobrien
4992174294Sobrien2003-07-14  Ion Badulescu  <lionut@gonzales.badula.org>
4993174294Sobrien
4994174294Sobrien	* BUGS (Note): document the Solaris 8 bug (the upgrade to autofs
4995174294Sobrien	v4 without updating all the header files)
4996174294Sobrien
4997174294Sobrien2003-07-13  Ion Badulescu  <lionut@gonzales.badula.org>
4998174294Sobrien
4999174294Sobrien	* NEWS, tasks: updated
5000174294Sobrien
5001174294Sobrien	* amd/amfs_generic.c (free_continuation): free _all_ mntfs's in
5002174294Sobrien	the am_mfarray, unconditionally
5003174294Sobrien	(amfs_bgmount): call free_mntfs when we're done with a mntfs, call
5004174294Sobrien	dup_mntfs when starting processing of a new one; make sure we
5005174294Sobrien	always go through 'goto failed' for a failed mntfs; use the error
5006174294Sobrien	code returned by autofs_get_fh()
5007174294Sobrien
5008174294Sobrien	* conf/autofs/autofs_linux.c (autofs_get_fh): return proper error
5009174294Sobrien	codes in case of problems
5010174294Sobrien
5011174294Sobrien2003-07-13  Erez Zadok  <ezk@filer.fsl.cs.sunysb.edu>
5012174294Sobrien
5013174294Sobrien	* BUGS: Document buggy behavior of Solaris /usr/ccs/bin/lex.  In
5014174294Sobrien	short, use flex.
5015174294Sobrien
5016174294Sobrien2003-07-13  Erez Zadok  <ezk@a-hpux11.fsl.cs.sunysb.edu>
5017174294Sobrien
5018174294Sobrien	* fsinfo/fsi_lex.l, amd/conf_tok.l: allocate more output slots so
5019174294Sobrien	lex scanners don't run out of mem.
5020174294Sobrien
5021174294Sobrien2003-07-13  Ion Badulescu  <lionut@gonzales.badula.org>
5022174294Sobrien
5023174294Sobrien	* amd/amfs_generic.c (amfs_lookup_mntfs): ditto as below for the
5024174294Sobrien	special provision
5025174294Sobrien
5026174294Sobrien	* amd/mntfs.c (find_mntfs): compare the filesystem type
5027174294Sobrien	(i.e. mf_ops) in addition to mf_info; the special provision
5028174294Sobrien	mentioned below is really for any filesystem already mounted on
5029174294Sobrien	our mount point, not just for inherited filesystems
5030174294Sobrien
5031174294Sobrien2003-07-13  Erez Zadok  <ezk@whitestar.dyn.optonline.net>
5032174294Sobrien
5033174294Sobrien	* doc/Makefile.am (install-html): build per-chapter HTML manual,
5034174294Sobrien	as well as manual in one big HTML file.
5035174294Sobrien
5036174294Sobrien	* doc/am-utils.texi: Minor corrections.  Ack Ion's autofs work.
5037174294Sobrien	Ack maintainers.  New section on How to get additionl info,
5038174294Sobrien	including the Amd book.  Correct stale URLs and Emails.
5039174294Sobrien
5040174294Sobrien	* amd/amd.8, amq/amq.8, amq/pawd.1, fixmount/fixmount.8,
5041174294Sobrien	fsinfo/fsinfo.8, hlfsd/hlfsd.8, mk-amd-map/mk-amd-map.8,
5042174294Sobrien	scripts/amd.conf.5, scripts/automount2amd.8,
5043174294Sobrien	wire-test/wire-test.8: include references to info pages, proper
5044174294Sobrien	authors, am-utils Web page, and amd book.
5045174294Sobrien
5046174294Sobrien2003-07-13  Ion Badulescu  <lionut@gonzales.badula.org>
5047174294Sobrien
5048174294Sobrien	* amd/mntfs.c (find_mntfs): re-add the check for mf_info, but with
5049174294Sobrien	a special provision for inherited filesystems. This unbreaks the
5050174294Sobrien	handling of parallel mounts
5051174294Sobrien
5052174294Sobrien	* amd/amfs_generic.c (amfs_lookup_mntfs): for restarted
5053174294Sobrien	filesystems, there can be no alternative mntfs to try to mount
5054174294Sobrien
5055174294Sobrien2003-07-13  Erez Zadok  <ezk@cs.sunysb.edu>
5056174294Sobrien
5057174294Sobrien	* amd/amd.8: reference am-utils info page in amd man page, as per
5058174294Sobrien	Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>.
5059174294Sobrien
5060174294Sobrien	* fsinfo/fsinfo.h, fsinfo/fsinfo.c (fsi_get_args): don't use
5061174294Sobrien	yywrap() if it doesn't exist.
5062174294Sobrien
5063174294Sobrien	* amd/conf_parse.y, amd/conf_tok.l, fsinfo/fsi_gram.y,
5064174294Sobrien	fsinfo/fsi_lex.l: fixes to support old flex 2.5.4, as well as the
5065174294Sobrien	newer flex 2.5.31 (beta development).  These include resolving
5066174294Sobrien	conflicts with yylineno, unput() vs. nounput(), etc.
5067174294Sobrien
5068174294Sobrien2003-07-13  Ion Badulescu  <lionut@gonzales.badula.org>
5069174294Sobrien
5070174294Sobrien	* amd/amfs_generic.c (amfs_cont): check for (am_error > 0) before
5071174294Sobrien	calling assign_error_mntfs()
5072174294Sobrien	(amfs_generic_mount_child): ditto
5073174294Sobrien
5074174294Sobrien	* amd/autil.c (assign_error_mntfs): move the check for
5075174294Sobrien	(am_error > 0) up into the caller, it's less confusing that way
5076174294Sobrien
5077174294Sobrien	* tasks: some updates
5078174294Sobrien
5079174294Sobrien	* conf/transp/transp_tli.c (check_pmap_up): new function which
5080174294Sobrien	detects if the remote portmapper is functional
5081174294Sobrien	(amu_clnt_create_best_version): removed
5082174294Sobrien	(get_nfs_version): use a much simplified version of the old
5083174294Sobrien	amu_clnt_create_best_version(), based on clnt_create_vers() and
5084174294Sobrien	its _timed() counterpart
5085174294Sobrien
5086174294Sobrien	* conf/transp/transp_sockets.c (check_pmap_up): new function which
5087174294Sobrien	detects if the remote portmapper is functional
5088174294Sobrien	(pmap_ping): deleted
5089174294Sobrien	(get_nfs_version): removed calls to pmap_ping, already done by
5090174294Sobrien	caller
5091174294Sobrien
5092174294Sobrien	* amd/srvr_nfs.c: call check_pmap_up() before continuing with
5093174294Sobrien	get_nfs_version()
5094174294Sobrien
5095174294Sobrien	* amd/amfs_generic.c: updated a couple of log messages
5096174294Sobrien
5097174294Sobrien	* configure.in: detect clnt_create_vers and clnt_create_vers_timed;
5098174294Sobrien	changed LIBTOOL versioning to 3:0:0
5099174294Sobrien
5100174294Sobrien2003-07-12  Ion Badulescu  <lionut@gonzales.badula.org>
5101174294Sobrien
5102174294Sobrien	* conf/autofs/autofs_linux.h (AUTOFS_HOST_FS_FLAGS): removed
5103174294Sobrien	FS_AUTOFS because the host mount cannot be a top level mount
5104174294Sobrien	(AUTOFS_DIRECT_FS_FLAGS): removed FS_AUTOFS because Linux autofs
5105174294Sobrien	doesn't support direct mounts
5106174294Sobrien
5107174294Sobrien2003-07-12  Erez Zadok  <ezk@whitestar.dyn.optonline.net>
5108174294Sobrien
5109174294Sobrien	* amd/conf_parse.y, amd/conf_tok.l: pretty comments on # cpp
5110174294Sobrien	macros.
5111174294Sobrien
5112174294Sobrien2003-07-10  Ion Badulescu  <ionut@buggy.badula.org>
5113174294Sobrien
5114174294Sobrien	* include/am_utils.h (dlog): improved version for gcc, using
5115174294Sobrien	vararg macros
5116174294Sobrien
5117174294Sobrien	* amd/rpc_fwd.c (fwd_packet): unused variable when compiling
5118174294Sobrien	without debugging
5119174294Sobrien
5120174294Sobrien2003-07-10  Erez Zadok  <ezk@filer.fsl.cs.sunysb.edu>
5121174294Sobrien
5122174294Sobrien	* include/am_utils.h (dlog): change the #define of non-debugging
5123174294Sobrien	dlog to "nothing" so that all that'll be left behind is a list of
5124174294Sobrien	args in parenthesis (arg,arg,...).  GCC and other native C
5125174294Sobrien	compilers seem OK with it, even if it doesn't optimize away the
5126174294Sobrien	whole debugging line.
5127174294Sobrien
5128174294Sobrien	* ltmain.sh: was from libtool 1.4.2.  updated to libtool 1.4.3,
5129174294Sobrien	the latest on RH9 systems (but is not the latest libtool
5130174294Sobrien	available).  Stay with stable version in preparation for 6.1
5131174294Sobrien	release.
5132174294Sobrien
5133174294Sobrien	* config.{guess,sub}, doc/texinfo.tex: update to latest off of
5134174294Sobrien	ftp.gnu.org.
5135174294Sobrien
5136174294Sobrien2003-07-09  Erez Zadok  <ezk@filer.fsl.cs.sunysb.edu>
5137174294Sobrien
5138174294Sobrien	* amd/amfs_inherit.c (amfs_inherit_inherit): don't use // C++
5139174294Sobrien	style comments: breaks non-C++ compilers (like AIX xlC 6)
5140174294Sobrien
5141174294Sobrien2003-07-02  Ion Badulescu  <ionut@buggy.badula.org>
5142174294Sobrien
5143174294Sobrien	* doc/am-utils.texi (opts Option): document ignore_portmapper option
5144174294Sobrien
5145174294Sobrien	* conf/transp/transp_sockets.c (get_nfs_version): better
5146174294Sobrien	protocol/version cycling while probing remote server; better log
5147174294Sobrien	messages
5148174294Sobrien
5149174294Sobrien	* amd/srvr_nfs.c (start_ping): improved log message
5150174294Sobrien	(find_nfs_srvr): always use requested nfs_version/nfs_proto; make
5151174294Sobrien	sure we have a valid NFS port; start the server as "valid, down" if
5152174294Sobrien	the remote portmapper tells us the NFS service is not running;
5153174294Sobrien	implement the "ignore_portmapper" pseudo-mount option
5154174294Sobrien
5155174294Sobrien	* amd/rpc_fwd.c (fwd_packet): better debug messages
5156174294Sobrien
5157174294Sobrien	* amd/ops_nfs.c (got_nfs_fh): log a messages if a root fh is
5158174294Sobrien	denied; call wakeup even if mountd call fails
5159174294Sobrien
5160174294Sobrien	* amd/amq_subr.c (xdr_amq_mount_info_qelem): use FSRV_ISUP/ISDOWN
5161174294Sobrien	instead of checking the flags directly
5162174294Sobrien	* amd/srvr_amfs_auto.c (free_srvr): ditto
5163174294Sobrien
5164174294Sobrien	* amd/amfs_generic.c (amfs_bgmount): refined some error/debug
5165174294Sobrien	messages
5166174294Sobrien
5167174294Sobrien	* amd/amd.h (FSRV_ERROR): new macro
5168174294Sobrien	(FSRV_ISDOWN, FSRV_ISUP): a server that doesn't exist (i.e. it's a
5169174294Sobrien	local filesystem) is always up
5170174294Sobrien
5171174294Sobrien2003-06-30  Erez Zadok  <ezk@cs.sunysb.edu>
5172174294Sobrien
5173174294Sobrien	* amd/autil.c (am_mounted): set AMF_NOTIMEOUT if either unmount or
5174174294Sobrien	umount options are present.
5175174294Sobrien
5176174294Sobrien	* doc/am-utils.texi (Program Filesystem): document alias options
5177174294Sobrien	to unmount:=, umount:=.
5178174294Sobrien
5179174294Sobrien	* amd/opts.c (expansions): initialize opt_umount.
5180174294Sobrien	(to_free): initialize opt_umount.
5181174294Sobrien
5182174294Sobrien	* amd/amfs_program.c (amfs_program_match): ensure that only one of
5183174294Sobrien	umount:= or unmount:= options are specified, but that at least one
5184174294Sobrien	of them is listed.
5185174294Sobrien
5186174294Sobrien	* amd/amd.h: support unmount:=XXX as well as umount:=XXX (too
5187174294Sobrien	annoying in type:program, when one forgets the 'n' in "unmount").
5188174294Sobrien	They are two separate fields, so we can catch mistakes when
5189174294Sobrien	someone tries to define both options.
5190174294Sobrien
5191174294Sobrien	* doc/am-utils.texi (Program Filesystem): explain that both mount
5192174294Sobrien	and unmount options must be specified.  Correct example to show
5193174294Sobrien	both.
5194174294Sobrien
5195174294Sobrien2003-06-25  Erez Zadok  <ezk@cs.sunysb.edu>
5196174294Sobrien
5197174294Sobrien	* XXX: beginning of new amd.conf option map_defaults: will parse
5198174294Sobrien	the option and set remember it in the right places.  Need to
5199174294Sobrien	document this and actually hook it up with the rest of the code.
5200174294Sobrien	Any volunteers? :-)
5201174294Sobrien
5202174294Sobrien	* scripts/amd.conf-sample (map_defaults): example of map_defaults
5203174294Sobrien	amd.conf option.
5204174294Sobrien
5205174294Sobrien	* amd/conf.c (reset_cf_map): initialize global and per-mount
5206174294Sobrien	map_defaults.
5207174294Sobrien	(gopt_map_defaults): parse global map_defaults.
5208174294Sobrien	(process_regular_option,ropt_map_defaults): parse per-map
5209174294Sobrien	map_defaults amd.conf option.
5210174294Sobrien
5211174294Sobrien	* amd/amd.h: a place to store global and per-mount map_defaults.
5212174294Sobrien
5213174294Sobrien	* BUGS: more notes about AIX 5.2 problems and how to overcome
5214174294Sobrien	them.
5215174294Sobrien
5216174294Sobrien2003-06-10  Erez Zadok  <ezk@cs.sunysb.edu>
5217174294Sobrien
5218174294Sobrien	* doc/Makefile.am: force version.texi to be rebuilt regardless of
5219174294Sobrien	maintainer mode.  Silly Automake will not build version.texi if
5220174294Sobrien	maintainer mode is off (this is hardcoded into the automake perl
5221174294Sobrien	script!).  According to the Automake maintainers, users should
5222174294Sobrien	always build in CVS trees with maintainer-mode on; but what if I
5223174294Sobrien	don't want to?!  I don't want to distribute Makefiles with
5224174294Sobrien	maintained rules in them to users.  The Automake maintainers also
5225174294Sobrien	say that "make dist" will rebuild version.texi no matter what.  I
5226174294Sobrien	find that not to be the case.  It failed to run a "make" before
5227174294Sobrien	"make dist" because version.texi doesn't exist!  Chicken and Egg
5228174294Sobrien	situation.  So, until Automake deals with version.texi in a more
5229174294Sobrien	flexible and friendly manner, I adapted a rule to build
5230174294Sobrien	version.texi and inserted it in this Makefile.am.
5231174294Sobrien
5232119679Smbr2003-06-09  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
5233119679Smbr
5234119679Smbr	* mk-amd-map/mk-amd-map.c (main): open temp db file using O_EXCL,
5235119679Smbr	next best thing to using mkstemp().  Patch from Hendrik Scholz
5236119679Smbr	<hscholz@raisdorf.net>.
5237119679Smbr
5238119679Smbr2003-05-08  Ion Badulescu  <ion@guppy.limebrokerage.com>
5239119679Smbr
5240119679Smbr	* libamu/mount_fs.c (compute_automounter_mount_flags): use
5241174294Sobrien	MNT2_GEN_OPT_AUTOMNTFS if available; minor cleanup
5242119679Smbr
5243119679Smbr	* m4/macros/header_templates.m4: added template for
5244119679Smbr	MNT2_GEN_OPT_AUTOMOUNTED
5245119679Smbr
5246174294Sobrien2003-05-01  Ion Badulescu  <ionut@nicu.badula.org>
5247174294Sobrien
5248174294Sobrien	* amd/ops_xfs.c (mount_xfs): compile fix (s/genflags/flags/)
5249174294Sobrien
5250119679Smbr2003-04-23  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
5251119679Smbr
5252119679Smbr	* conf/transp/transp_sockets.c (create_amq_service): minor cpp
5253119679Smbr	directive indentation and commenting.
5254119679Smbr
5255119679Smbr2003-04-22  Ion Badulescu  <ionut@moisil.badula.org>
5256119679Smbr
5257174294Sobrien	* conf/transp/transp_sockets.c (create_amq_service): Ugly *BSD fix
5258174294Sobrien	for an RPC library DoS issue (original patch from Martin Blapp,
5259119679Smbr	massaged into something more digestable by me)
5260119679Smbr
5261174294Sobrien2003-04-14  Ion Badulescu  <ionut@moisil.badula.org>
5262174294Sobrien
5263174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c: removed autofs_free_data(),
5264174294Sobrien	left over from the recent cleanup
5265174294Sobrien
5266119679Smbr2003-04-13  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
5267119679Smbr
5268119679Smbr	* doc/Makefile.am (DVIPS): use proper options for dvips.
5269119679Smbr
5270119679Smbr	* doc/am-utils.texi (opts Option): document new 'unmount' option,
5271119679Smbr	and better explain the 'nounmount' option.  Also some misc options
5272119679Smbr	for better generation of html manual.
5273119679Smbr
5274174294Sobrien	* doc/Makefile.am (install-html): support newer texi2html 4.0
5275119679Smbr	options, as older options were renamed or changed behavior.
5276119679Smbr
5277119679Smbr	* amd/autil.c (am_mounted): support new 'unmount' option, to allow
5278119679Smbr	all file system mounts to timeout and thus expire.  This option is
5279119679Smbr	useful for removable local media such as CD-ROMs, USB drives,
5280119679Smbr	etc. so they can expire when not in use, and get unmounted (such
5281119679Smbr	drives can get work out when they keep spinning).  Patch from
5282119679Smbr	Christos Zoulas <christos@zoulas.com> (originally from Koji
5283119679Smbr	Imada).
5284119679Smbr
5285119679Smbr2003-04-10  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
5286119679Smbr
5287119679Smbr	* configure.in: use AM_MAINTAINER_MODE, so maintainer-only rules
5288119679Smbr	do not get added to Makefiles by default (they are confusing to
5289119679Smbr	users who don't have autotools installed).
5290119679Smbr
5291174294Sobrien2003-04-09  Ion Badulescu  <ion@guppy.limebrokerage.com>
5292174294Sobrien
5293174294Sobrien	* amd/mntfs.c (find_mntfs): revert the "change of philosophy" (see
5294174294Sobrien	the 2001-05-23 entry) back to the 6.0 code
5295174294Sobrien
5296119679Smbr2003-04-04  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
5297119679Smbr
5298119679Smbr	* libamu/xutil.c (switch_to_logfile): don't try to print logfile
5299119679Smbr	if it is null (strlen core dump on solaris).  Bug report from John
5300119679Smbr	P. Rouillard <rouilj@ieee.org>.
5301119679Smbr
5302119679Smbr2003-03-31  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
5303119679Smbr
5304119679Smbr	* fsinfo/fsinfo.8: typo co-ordinate -> coordinate.  Typo report
5305119679Smbr	from Perry E. Metzger" <perry@piermont.com>.
5306119679Smbr
5307174294Sobrien2003-03-25  Erez Zadok  <ezk@filer.fsl.cs.sunysb.edu>
5308174294Sobrien
5309174294Sobrien	* include/am_defs.h: Don't include malloc.h if stdlib.h exists,
5310174294Sobrien	because modern systems (e.g., BSD) complain if you use malloc.h
5311174294Sobrien	instead of stdlib.h.  Let's hope there are no systems out
5312174294Sobrien	there that need both.
5313174294Sobrien
5314119679Smbr2003-03-20  Erez Zadok  <ezk@suse73.fsl.cs.sunysb.edu>
5315119679Smbr
5316119679Smbr	* minor new port: sparc64-unknown-linux-suse7.3.
5317119679Smbr
5318119679Smbr2003-03-20  Erez Zadok  <ezk@a-freebsd5.fsl.cs.sunysb.edu>
5319119679Smbr
5320119679Smbr	* minor new port: i386-unknown-freebsd5.0.
5321119679Smbr
5322119679Smbr	* configure.in: detect nfsclient/nfsargs.h.
5323119679Smbr
5324119679Smbr	* conf/nfs_prot/nfs_prot_freebsd3.h: include
5325119679Smbr	<nfsclient/nfsargs.h>, needed in FreeBSD 5.0.
5326119679Smbr
5327119679Smbr2003-03-15  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
5328119679Smbr
5329119679Smbr	* amd/amd.8, amd/amd.8, fixmount/fixmount.8, hlfsd/hlfsd.8,
5330119679Smbr	scripts/amd.conf.5, scripts/expn.1: minor spell checking and
5331119679Smbr	extraneous space elimination.
5332119679Smbr
5333174294Sobrien2003-03-07  Ion Badulescu  <ionut@buggy.badula.org>
5334174294Sobrien
5335174294Sobrien	* conf/autofs/autofs_linux.c (autofs_get_fh): don't leak file
5336174294Sobrien	descriptors if limit exceeded
5337174294Sobrien	(autofs_mounted): call autofs_get_mp(); init am_autofs_ttl
5338174294Sobrien	(autofs_release_fh): release pending_mounts and pending_umounts
5339174294Sobrien	queues
5340174294Sobrien	(autofs_timeout_mp): update am_autofs_ttl instead of am_ttl
5341174294Sobrien
5342174294Sobrien	* amd/mntfs.c (init_mntfs): delete initialization of removed
5343174294Sobrien	mf_autofs_fh
5344174294Sobrien	(uninit_mntfs): delete call to autofs_release_fh()
5345174294Sobrien
5346174294Sobrien	* amd/map.c (init_map): init autofs_fh to 0, delete initialization
5347174294Sobrien	of removed autofs_data
5348174294Sobrien	(free_map): release autofs_fh after unmounting map; delete call to
5349174294Sobrien	autofs_free_data()
5350174294Sobrien	(umount_exported): call autofs_release_mp() prior to unmounting
5351174294Sobrien	autofs f/s
5352174294Sobrien	(unmount_mp): ditto
5353174294Sobrien	(free_map_if_success): call autofs_get_mp() if unmounting fails
5354174294Sobrien	(timeout_mp): use the dedicated am_autofs_ttl timeout for f/s-wide
5355174294Sobrien	timeouts instead of the per-mountpoint am_ttl
5356174294Sobrien
5357174294Sobrien	* amd/autil.c (am_unmounted): release autofs_fh after unmounting
5358174294Sobrien	autofs f/s
5359174294Sobrien
5360174294Sobrien	* amd/amfs_generic.c (amfs_cont): release autofs_fh if mounting
5361174294Sobrien	autofs f/s fails;
5362174294Sobrien	(amfs_bgmount): ditto
5363174294Sobrien
5364174294Sobrien	* amd/amd.h: moved autofs_fh from mntfs to am_node, since it's
5365174294Sobrien	more related to the mount point than to the f/s mounted;
5366174294Sobrien	added am_autofs_ttl to am_node, for running expirations on entire
5367174294Sobrien	filesystems
5368174294Sobrien
5369174294Sobrien	* conf/autofs/autofs_*: autofs_get_fh() returns int instead of
5370174294Sobrien	autofs_fh_t *; autofs_release_fh() now takes an am_node * parameter
5371174294Sobrien	instead of autofs_fh_t *, in an effort to not deal with
5372174294Sobrien	autofs-specific data structures outside autofs code;
5373174294Sobrien	new methods autofs_get_mp() and autofs_release_mp(), which
5374174294Sobrien	acquire/release autofs resources to allow clean unmount attempts;
5375174294Sobrien	nuke autofs_data_t, never used
5376174294Sobrien
5377174294Sobrien	* amd/amd.h: prototypes for new and changed autofs functions
5378174294Sobrien
5379174294Sobrien2003-03-07  Ion Badulescu  <ion@guppy.limebrokerage.com>
5380174294Sobrien
5381174294Sobrien	* amd/nfs_subr.c (do_readlink): eliminate third argument, never used
5382174294Sobrien	(nfsproc_getattr_2_svc): reorganize the code a bit
5383174294Sobrien
5384174294Sobrien	* amd/map.c (mk_fattr): take a nfsfattr * argument instead of an
5385174294Sobrien	am_node * argument
5386174294Sobrien
5387174294Sobrien	* amd/amd.h: changed prototype for mk_fattr()
5388174294Sobrien
5389174294Sobrien	* amd/autil.c (am_unmounted): when remounting, use the parent
5390174294Sobrien	node's lookup_child() and mount_child() operations, not the
5391174294Sobrien	generic ones
5392174294Sobrien
5393174294Sobrien	* amd/amfs_generic.c (amfs_cont): minor code optimization
5394174294Sobrien
5395174294Sobrien2003-03-06  Ion Badulescu  <ion@guppy.limebrokerage.com>
5396174294Sobrien
5397174294Sobrien	* amd/amfs_auto.c: lots of renames and code moving:
5398174294Sobrien	amfs_auto_match() -> amfs_generic_match(), moved to generic;
5399174294Sobrien	amfs_auto_mkcacheref() -> amfs_mkcacheref(), moved to autil.c;
5400174294Sobrien	amfs_auto_mounted() -> amfs_generic_mounted(), moved to generic;
5401174294Sobrien	amfs_auto_umount() -> amfs_generic_umount(), moved to generic;
5402174294Sobrien	free_continuation(): moved to generic, made static;
5403174294Sobrien	assign_error_mntfs(): moved to autil.c;
5404174294Sobrien	amfs_auto_cont() -> amfs_cont(), moved to generic, made static;
5405174294Sobrien	amfs_auto_retry() -> amfs_retry(), moved to generic, made static;
5406174294Sobrien	try_mount() + mount_node() -> mount_node(), moved to map.c
5407174294Sobrien	amfs_auto_bgmount() -> amfs_bgmount(), moved to generic;
5408174294Sobrien	amfs_parse_defaults(): moved to generic;
5409174294Sobrien	amfs_auto_lookup_node() -> amfs_lookup_node(), moved to generic;
5410174294Sobrien	amfs_auto_lookup_one_mntfs() -> amfs_lookup_one_mntfs(), in generic;
5411174294Sobrien	amfs_auto_lookup_mntfs() -> amfs_lookup_mntfs(), moved to generic;
5412174294Sobrien	amfs_auto_mount_child() -> amfs_generic_mount_child(), in generic;
5413174294Sobrien	amfs_auto_lookup_child() -> amfs_generic_lookup_child(), in generic;
5414174294Sobrien	next_nonerror_node(): moved to autil.c;
5415174294Sobrien	amfs_auto_readdir() -> amfs_generic_readdir(), moved to readdir;
5416174294Sobrien	amfs_auto_readdir_browsable() -> amfs_readdir_browsable(), in readdir;
5417174294Sobrien
5418174294Sobrien	* amd/amfs_toplvl.c: mount_amfs_toplvl() renamed to amfs_mount()
5419174294Sobrien	and moved to autil.c
5420174294Sobrien
5421174294Sobrien	* amd/readdir.c, amd/amfs_generic.c: new files with stuff ripped
5422174294Sobrien	out of amd/amfs_auto.c
5423174294Sobrien
5424174294Sobrien	* amd/amd.h: struct continuation moved to generic.c; prototypes
5425174294Sobrien	for the renamed functions; NumChild renamed to NumChildren
5426174294Sobrien
5427174294Sobrien	* amd/map.c: collaped unmount_node_wrap() and unmount_node() into
5428174294Sobrien	the latter
5429174294Sobrien
5430174294Sobrien	* amd/mapc.c: key_already_in_chain(): moved to readdir.c;
5431174294Sobrien	make_entry_chain(): moved to readdir.c;
5432174294Sobrien
5433174294Sobrien	* amd/srvr_amfs_auto.c: find_amfs_auto_srvr() renamed to
5434174294Sobrien	amfs_generic_find_srvr()
5435174294Sobrien
5436174294Sobrien	* amd/amfs_*.c: adjustments for the renames above
5437174294Sobrien
5438174294Sobrien	* amd/ops_*.c: low-level filesystems don't need a find_server()
5439174294Sobrien	method
5440174294Sobrien
5441174294Sobrien	* amd/Makefile.am: added amfs_generic.c and readdir.c
5442174294Sobrien
5443174294Sobrien	* doc/am-utils.texi: minor clarification for auto maps
5444174294Sobrien
5445174294Sobrien2003-03-06  Ion Badulescu  <ion@guppy.limebrokerage.com>
5446174294Sobrien
5447174294Sobrien	* amd/amd.h: moved lots and lots of amd-only stuff here, from
5448174294Sobrien	include/am_utils.h; changed task_fun, cb_fun and fwd_fun typedefs
5449174294Sobrien	to be function typedefs, not pointer to function typedefs
5450174294Sobrien
5451174294Sobrien	* include/am_utils.h: see above
5452174294Sobrien
5453174294Sobrien	* amd/ops_nfs.c, amd/rpc_fwd.c, amd/sched.c: adjustments for
5454174294Sobrien	function typedef changes
5455174294Sobrien
5456174294Sobrien2003-03-05  Erez Zadok  <ezk@cs.sunysb.edu>
5457174294Sobrien
5458174294Sobrien	* BUGS: record IBM's patch number for the AIX 5.2 NFS over IPv6
5459174294Sobrien	bug.
5460174294Sobrien
5461174294Sobrien2003-02-02  Erez Zadok  <ezk@siamese.fsl.cs.sunysb.edu>
5462174294Sobrien
5463174294Sobrien	* NEWS: minor new port: ia64-unknown-linux-rh2.1AS
5464174294Sobrien
5465174294Sobrien2003-01-31  Ion Badulescu  <ion@console.limebrokerage.com>
5466174294Sobrien
5467174294Sobrien	* m4/macros/os_cflags.m4: rhapsody and darwin are the same
5468174294Sobrien
5469174294Sobrien	* amd/autil.c (mount_node): vastly simplified, just a wrapper now
5470174294Sobrien
5471174294Sobrien	* amd/amfs_inherit.c (amfs_inherit_mount): remove the am_mounted()
5472174294Sobrien	hack, we now do it properly in the generic code
5473174294Sobrien
5474174294Sobrien	* amd/amfs_auto.c (amfs_auto_bgmount): get the autofs_fh _before_
5475174294Sobrien	forking the child; set and reset MFF_MOUNTING here, not in
5476174294Sobrien	mount_node(), because the latter might be running in child
5477174294Sobrien	context; call am_mounted() after a successful foreground mount
5478174294Sobrien
5479174294Sobrien2003-01-29  Ion Badulescu  <ionut@moisil.badula.org>
5480174294Sobrien
5481174294Sobrien	* configure.in: new flag --with[out]-ndbm; don't pull in libldap
5482174294Sobrien	if building --without-ldap; look for the gdbm/ndbm.h header; make
5483174294Sobrien	explicit the dependency between the ndbm headers and libraries;
5484174294Sobrien	define NEW_DBM_H as the ndbm header that should be used
5485174294Sobrien
5486174294Sobrien	* include/am_defs.h: simply include NEW_DBM_H for ndbm stuff,
5487174294Sobrien	instead of trying to second-guess configure
5488174294Sobrien
5489174294Sobrien	* m4/macros/header_templates.m4: new template for NEW_DBM_H
5490174294Sobrien
5491174294Sobrien	* m4/macros/check_map_funcs.m4:
5492174294Sobrien	(ac_upcase_map_name): use the third argument correctly
5493174294Sobrien
5494174294Sobrien	* ltmain.sh: working version from libtool-1.4.2-7
5495174294Sobrien
5496174294Sobrien	* buildall: print the entire configure command, including extra
5497174294Sobrien	arguments; pass each of the extra arguments separately, not
5498174294Sobrien	commingled into one
5499174294Sobrien
5500174294Sobrien2003-01-28  Ion Badulescu  <ion@guppy.limebrokerage.com>
5501174294Sobrien
5502174294Sobrien	* include/am_utils.h (DEBUG_MNTTAB): define outside of #ifdef
5503174294Sobrien	DEBUG; it is not used without DEBUG, but it is referenced at
5504174294Sobrien	compile time. Bug report from John Kilburg <john@physics.unlv.edu>.
5505174294Sobrien	(D_ALL): don't include D_XDRTRACE, too verbose and normally
5506174294Sobrien	unnecessary
5507174294Sobrien
5508174294Sobrien2003-01-28  Erez Zadok  <ezk@cs.sunysb.edu>
5509174294Sobrien
5510174294Sobrien	* ltmain.sh, config.guess, config.sub, doc/texinfo.tex: updates
5511174294Sobrien	from latest official GNU versions.
5512174294Sobrien
5513119679Smbr2003-01-25  Erez Zadok  <ezk@cs.sunysb.edu>
5514119679Smbr
5515119679Smbr	* BUGS (Note): document AIX-5.1 NFS-client side bug (hangs in
5516119679Smbr	vmount).
5517119679Smbr
5518119679Smbr2003-01-25  Ion Badulescu  <ionut@moisil.badula.org>
5519119679Smbr
5520174294Sobrien	* Released beta version 6.1b2
5521119679Smbr
5522174294Sobrien2003-01-24  Ion Badulescu  <ionut@moisil.badula.org>
5523119679Smbr
5524174294Sobrien	* amd/autil.c (am_unmounted): reset MFF_MKMNT from mf_flags when
5525174294Sobrien	calling rmdirs() on mountpoint
5526119679Smbr
5527174294Sobrien	* amd/amfs_auto.c (amfs_auto_bgmount): ditto
5528119679Smbr
5529174294Sobrien	* amd/amfs_nfsl.c (amfs_nfsl_umounted): ditto
5530174294Sobrien
5531174294Sobrien	* doc/am-utils.texi (opts Option): "sftlookup" -> "softlookup"
5532174294Sobrien
5533174294Sobrien	* NEWS: "sftlookup" -> "softlookup"
5534174294Sobrien
5535174294Sobrien	* amd/ops_nfs.c (nfs_mount): "sftlookup" -> "softlookup", also
5536174294Sobrien	check for "nosoftlookup" in combination with "soft"
5537174294Sobrien
5538174294Sobrien2003-01-23  Ion Badulescu  <ion@guppy.limebrokerage.com>
5539174294Sobrien
5540119679Smbr	* m4/macros/check_nfs_fh_dref.m4: darwin/rhapsody is another
5541119679Smbr	freebsd22 derivative
5542119679Smbr
5543174294Sobrien	* NEWS: updated for Darwin changes
5544174294Sobrien
5545174294Sobrien	* .cvsignore: added A.i386-apple-darwin6.0
5546174294Sobrien
5547174294Sobrien	* m4/macros/os_cflags.m4: add -D_P1003_1B_VISIBLE to cflags for
5548174294Sobrien	Darwin
5549174294Sobrien
5550174294Sobrien2003-01-23  Erez Zadok  <ezk@cs.sunysb.edu>
5551174294Sobrien
5552174294Sobrien	* conf/mount/mount_aix.c (mount_aix3): clean back this file from
5553174294Sobrien	all the debugging cruft that is no longer needed (and really was
5554174294Sobrien	never needed in the first place).
5555174294Sobrien
5556174294Sobrien2003-01-10  Erez Zadok  <ezk@cs.sunysb.edu>
5557174294Sobrien
5558174294Sobrien	* scripts/test-amd.{misc,conf}: simple amd.conf and amd.misc
5559174294Sobrien	(map) files for testing basic amd functionality such as whether it
5560174294Sobrien	can mount its own mount NFS points.
5561174294Sobrien
5562119679Smbr2002-12-28  Ion Badulescu  <ionut@moisil.badula.org>
5563119679Smbr
5564119679Smbr	* amd/srvr_nfs.c (start_nfs_pings): don't set FSF_PINGING if
5565119679Smbr	pings are disabled
5566119679Smbr
5567174294Sobrien	* libamu/xdr_func.c (xdr_ftype): use a local enum_t variable
5568174294Sobrien	instead of casting the pointer to (enum_t *)
5569174294Sobrien	(xdr_mountstat3): ditto
5570174294Sobrien	(xdr_nfsstat): ditto
5571174294Sobrien
5572119679Smbr	* libamu/misc_rpc.c (make_rpc_packet): fix make_rpc_packet() on
5573119679Smbr	64-bit big-endian platforms, bug report from Bill Fenner
5574119679Smbr	<fenner@research.att.com>
5575119679Smbr
5576119679Smbr	* configure.in: increase library patchlevel
5577119679Smbr
5578119679Smbr	* libamu/xutil.c (amu_release_controlling_tty): close and reopen
5579119679Smbr	file descriptors 0,1,2 before calling setsid()
5580119679Smbr
5581119679Smbr2002-12-27  Erez Zadok  <ezk@cs.sunysb.edu>
5582119679Smbr
5583119679Smbr	* updated copyright year to 2003 on all files
5584119679Smbr
5585174294Sobrien2002-12-10  Erez Zadok  <ezk@localhost.localdomain>
5586119679Smbr
5587174294Sobrien	* rename "aux/" subdir into "m4/" so as to avoid problems with
5588174294Sobrien	MS-DOS systems (where "AUX" is a reserved name).  This required
5589174294Sobrien	fixing numerous files.
5590119679Smbr
5591174294Sobrien2002-12-10  Erez Zadok  <ezk@filer.fsl.cs.sunysb.edu>
5592119679Smbr
5593174294Sobrien	* configure.in: don't check for bad hasmntopt() function if
5594174294Sobrien	hasmntopt() doesn't exist on the system, because we will replace
5595174294Sobrien	it with our own version anyway.
5596119679Smbr
5597174294Sobrien	* conf/transp/transp_sockets.c (amu_get_myaddress): use "%lx" in
5598174294Sobrien	dlog because htonl() returns a u_long.
5599174294Sobrien
5600119679Smbr2002-12-10  Erez Zadok  <ezk@localhost.localdomain>
5601119679Smbr
5602174294Sobrien	* include/am_defs.h: use system's hasmntopt() only if it is found
5603174294Sobrien	and it is not buggy.
5604119679Smbr
5605174294Sobrien	* libamu/hasmntopt.c (nextmntopt): isspace() takes an int, not a
5606174294Sobrien	char.
5607174294Sobrien
5608174294Sobrien	* amd/am_ops.c, amd/amfs_auto.c, amd/autil.c, amd/nfs_subr.c,
5609174294Sobrien	amd/ops_cdfs.c, amd/ops_nfs.c, amd/srvr_nfs.c, libamu/hasmntopt.c,
5610174294Sobrien	libamu/mount_fs.c, libamu/mtab.c: rename all uses of hasmntopt()
5611174294Sobrien	to amu_hasmntopt().  Don't use hasmntopt() directly any more!
5612174294Sobrien
5613174294Sobrien	* aux/macros/func_bad_hasmntopt.m4: new M4 macro to test for a bad
5614174294Sobrien	hasmntopt() function, which incorrectly finds the option "soft" in
5615174294Sobrien	a string "hard,softlookup,ro".
5616174294Sobrien
5617174294Sobrien	* libamu/hasmntopt.c (hasmntopt): use 'const' on two args to
5618174294Sobrien	hasmntopt(), to match what most systems use.
5619174294Sobrien
5620174294Sobrien	* aux/macros/header_templates.m4: template for HAVE_BAD_HASMNTOPT.
5621174294Sobrien
5622174294Sobrien	* configure.in: invoke test for bad hasmntopt()
5623174294Sobrien
5624174294Sobrien	* NEWS: minor new port, i386-pc-linux-rh8.0.
5625174294Sobrien	Mention autofs-v4 on solaris9 works.
5626174294Sobrien
5627174294Sobrien	* bootstrap: remove any autom4te-*.cache directories, now that
5628174294Sobrien	autoconf uses a version number for them.
5629174294Sobrien
5630174294Sobrien2002-12-09  Ion Badulescu  <ionut@moisil.badula.org>
5631174294Sobrien
5632174294Sobrien	Patches from Christos Zoulas:
5633174294Sobrien
5634174294Sobrien	-1- am_utils.h: add full prototypes
5635174294Sobrien	-2- amfs_auto.c make functions static and add prototypes
5636174294Sobrien	-3- map.c: kill double free
5637174294Sobrien	-5- transp_sockets.c: add full prototypes
5638174294Sobrien
5639174294Sobrien2002-12-09  Ion Badulescu  <ionut@moisil.badula.org>
5640174294Sobrien
5641174294Sobrien	* NEWS: updated
5642174294Sobrien
5643174294Sobrien	* doc/am-utils.texi (opts Option): document sftlookup
5644174294Sobrien
5645174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c: compile fixes
5646174294Sobrien
5647174294Sobrien2002-11-22  Erez Zadok  <ezk@filer.fsl.cs.sunysb.edu>
5648174294Sobrien
5649174294Sobrien	* amd/info_ldap.c (amu_ldap_rebind): gopt.ldap_cache_seconds is
5650174294Sobrien	%ld not %d.
5651174294Sobrien
5652174294Sobrien2002-11-21  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
5653174294Sobrien
5654174294Sobrien	* {amd,fsinfo}/Makefile.am: remove special rules for processing
5655174294Sobrien	yacc/lex files, now that autoconf/automake properly handle them
5656174294Sobrien	better (esp. now that bison 1.75 behaves differently than older
5657174294Sobrien	bison versions).
5658174294Sobrien
5659119679Smbr2002-11-21  Erez Zadok  <ezk@cs.sunysb.edu>
5660119679Smbr
5661119679Smbr	* config.guess.long: updated script so it will properly find the
5662119679Smbr	version number of the new Itanium 2 machines running "Red Hat
5663119679Smbr	Linux Advanced Workstation release 2.1AW (Derry)".  The script now
5664119679Smbr	will report ia64-unknown-linux-rh2.1AW.
5665119679Smbr
5666174294Sobrien2002-11-20  Ion Badulescu  <ionut@moisil.badula.org>
5667174294Sobrien
5668174294Sobrien	* amfs_auto_bgmount(): almost complete rewrite
5669174294Sobrien
5670174294Sobrien	* fixed amfs_inherit to do the right thing and not dereference
5671174294Sobrien	freed mntfs'es
5672174294Sobrien
5673174294Sobrien	* #if 0'ed bogus code in fh_to_mp3() -- it is now done properly in
5674174294Sobrien	amfs_autofs_lookup_child()
5675174294Sobrien
5676174294Sobrien	* release the autofs_fh only in one place
5677174294Sobrien
5678174294Sobrien	* remove the mountpoint only if mf_refc == 1
5679174294Sobrien
5680174294Sobrien	* print the mntfs type in free_mntfs()
5681174294Sobrien
5682174294Sobrien	* new pseudo-mount option 'sftlookup' which causes lookups to
5683174294Sobrien	mounted shares from downed servers to return EIO; the default
5684174294Sobrien	depends on whether the mount is 'hard' or 'soft'
5685174294Sobrien
5686174294Sobrien	* improved querying of supported NFS versions on the server --
5687174294Sobrien	don't even try if it's known to be down
5688174294Sobrien
5689174294Sobrien	* solaris autofs mount code moved to transp_{sockets,tli}.c
5690174294Sobrien
5691174294Sobrien	* incipient (non-functional) AIX autofs support
5692174294Sobrien
5693119679Smbr2002-11-11  Ion Badulescu  <ion@guppy.limebrokerage.com>
5694119679Smbr
5695119679Smbr	* doc/am-utils.texi (Keep-alives): removed outdated info about not
5696119679Smbr	maintaining the state of TCP NFS servers
5697119679Smbr
5698174294Sobrien2002-11-04  Ion Badulescu  <ion@guppy.limebrokerage.com>
5699119679Smbr
5700174294Sobrien	* include/am_utils.h: prototype for ops_search()
5701119679Smbr
5702174294Sobrien	* amd/am_ops.c (ops_search): new function for searching the right
5703174294Sobrien	set of ops for a given filesystem type
5704119679Smbr
5705174294Sobrien	* amd/restart.c (restart): cleanup and split into two functions in
5706174294Sobrien	preparation for handling the restart of amd's own mount points
5707174294Sobrien	(restart_fake_mntfs): new function, factored out from restart()
5708119679Smbr
5709174294Sobrien2002-11-04  Ion Badulescu  <ionut@buggy.badula.org>
5710119679Smbr
5711174294Sobrien	* amd/ops_cdfs.c (mount_cdfs): remove special code for loop device
5712174294Sobrien	(cdfs_umount): ditto
5713119679Smbr
5714174294Sobrien	* conf/mount/mount_linux.c (mount_linux): factor it out to
5715174294Sobrien	mount_linux_nfs() and mount_linux_nonfs()
5716174294Sobrien	(mount_linux_nonfs): generalize loop device support to all
5717174294Sobrien	filesystems (not just cdfs); make it automatic for anything that's
5718174294Sobrien	a regular file
5719174294Sobrien	(parse_opts): deprecate the explicit "loop" mount option
5720174294Sobrien	(do_mount_linux): minor cleanup
5721119679Smbr
5722174294Sobrien	* conf/umount/umount_default.c (umount_fs2): release loop device
5723174294Sobrien	on umount()
5724119679Smbr
5725174294Sobrien2002-11-03  Erez Zadok  <ezk@cnm20>
5726119679Smbr
5727174294Sobrien	* include/am_defs.h: moved #include of net/if.h above net/route.h,
5728174294Sobrien	because on AIX 5.2 if.h is needed for route.h (let's hope it
5729174294Sobrien	doesn't break things on other systems).
5730119679Smbr
5731174294Sobrien	* include/am_defs.h: AIX 5.2 needs struct sigevent from signal.h
5732174294Sobrien	to be defined, but I don't want to move the inclusion of signal.h
5733174294Sobrien	this early into this file.  Luckily, amd doesn't need the size of
5734174294Sobrien	this structure in any other structure that it uses.  So we
5735174294Sobrien	sidestep it for now.
5736119679Smbr
5737174294Sobrien	* conf/nfs_prot/nfs_prot_aix5_2.h: AIX 5.2 wants 'struct pathcnf',
5738174294Sobrien	but I couldn't find its definition anywhere.  Luckily, amd doesn't
5739174294Sobrien	need the size of this structure in any other structure that it
5740174294Sobrien	uses.  So we sidestep it for now.
5741174294Sobrien
5742174294Sobrien2002-11-02  Erez Zadok  <ezk@cs.sunysb.edu>
5743174294Sobrien
5744174294Sobrien	* config.guess, config.sub, doc/texinfo.tex: updates from
5745174294Sobrien	the latest GNU distributions (2002-09-05).
5746174294Sobrien
5747174294Sobrien2002-10-30  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
5748174294Sobrien
5749174294Sobrien	* conf/nfs_prot/nfs_prot_aix5_2.h: add more definitions from
5750174294Sobrien	mount.h for NFSOPT_* and NFSMNT_*.
5751174294Sobrien	Don't use typedefs that aren't found in system header files.
5752174294Sobrien
5753174294Sobrien2002-10-30  Erez Zadok  <ezk@cs.sunysb.edu>
5754174294Sobrien
5755174294Sobrien	* Makefile.am (EXTRA_DIST_CONF): distribute nfs_prot_aix5_2.h.
5756174294Sobrien
5757174294Sobrien	* conf/nfs_prot/nfs_prot_aix5_2.h: new file.
5758174294Sobrien
5759174294Sobrien	* aux/macros/struct_nfs_args.m4 (ac_cv_have_struct_nfs_args): look
5760174294Sobrien	for "struct aux52_nfs_args".
5761174294Sobrien
5762174294Sobrien	* aux/macros/check_nfs_prot_headers.m4: define new header file for
5763174294Sobrien	AIX 5.2.
5764174294Sobrien
5765174294Sobrien2002-10-21  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
5766174294Sobrien
5767174294Sobrien	* scripts/amd.conf.5 (ldap_proto_version): document in amd.conf
5768174294Sobrien	man page.
5769174294Sobrien
5770174294Sobrien	* scripts/amd.conf-sample (ldap_proto_version): show example of use
5771174294Sobrien
5772174294Sobrien	* doc/am-utils.texi (ldap_proto_version Parameter): document new
5773174294Sobrien	amd.conf option.
5774174294Sobrien
5775174294Sobrien	* amd/conf.c (gopt_ldap_proto_version): new conf function to
5776174294Sobrien	support ldap_proto_version amd.conf parameter.
5777174294Sobrien
5778174294Sobrien	* amd/amd.h: field to hold LDAP protocol version.
5779174294Sobrien
5780174294Sobrien	* amd/amd.c (init_global_options): set default for
5781174294Sobrien	ldap_proto_version.  ldap_proto_version patch from George Ross
5782174294Sobrien	<gdmr@dcs.ed.ac.uk> and Tim Colles <timc@inf.ed.ac.uk>.
5783174294Sobrien
5784174294Sobrien	* amd/info_ldap.c (amu_ldap_unbind): ignore SIGPIPE errors while
5785174294Sobrien	unbinding from an LDAP server that may have been restarted.  Fix
5786174294Sobrien	from George Ross <gdmr@dcs.ed.ac.uk>.
5787174294Sobrien
5788174294Sobrien2002-09-17  Ion Badulescu  <ion@guppy.limebrokerage.com>
5789174294Sobrien
5790174294Sobrien	* remove all autoconf stuff added for sys_nerr
5791174294Sobrien
5792174294Sobrien	* amq/amq.c, libamu/xutil.c, hlfsd/hlfsd.c: always use strerror
5793174294Sobrien
5794174294Sobrien	* libamu/strerror.c: more explicit text for unknown errno's
5795174294Sobrien
5796174294Sobrien2002-10-01  Erez Zadok  <ezk@cs.sunysb.edu>
5797174294Sobrien
5798174294Sobrien	* include/am_defs.h: define "extern int sys_err" if needed.
5799174294Sobrien
5800174294Sobrien	* aux/macros/header_templates.m4: template for
5801174294Sobrien	HAVE_EXTERN_SYS_NERR.
5802174294Sobrien
5803174294Sobrien	* hlfsd/hlfsd.h, libamu/xutil.c (expand_error), amq/amq.c
5804174294Sobrien	(show_mi): remove "extern int sys_err"
5805174294Sobrien
5806174294Sobrien	* configure.in: execute test for "extern int sys_err"
5807174294Sobrien
5808174294Sobrien	* Makefile.am (EXTRA_DIST_AUX): distribute new extern_sys_err.m4 file.
5809174294Sobrien
5810174294Sobrien	* aux/macros/extern_sys_nerr.m4: new test to check for existence
5811174294Sobrien	of "extern int sys_nerr" definition in system headers.
5812174294Sobrien
5813174294Sobrien2002-09-17  Ion Badulescu  <ion@guppy.limebrokerage.com>
5814174294Sobrien
5815174294Sobrien	* libamu/xutil.c (dbg_opt): bring comments in line with the code
5816174294Sobrien
5817174294Sobrien	* hlfsd/hlfsd.c (main): use amuDebug() instead of touching
5818174294Sobrien	debug_flags directly
5819174294Sobrien
5820174294Sobrien	* amd/amd.c (main): don't init debug_flags, leave it as zero (no
5821174294Sobrien	debugging by default)
5822174294Sobrien
5823174294Sobrien2002-09-11  Ion Badulescu  <ion@guppy.limebrokerage.com>
5824174294Sobrien
5825174294Sobrien	Debug code sanitization:
5826174294Sobrien
5827174294Sobrien	- amuDebug() becomes an expression, and explicit if() statements
5828174294Sobrien	are added around it throughout the code
5829174294Sobrien	- amuDebugNo() goes away (ugh!)
5830174294Sobrien	- D_AMQ, D_DAEMON and D_FORK reverse their meaning
5831174294Sobrien	- D_ALL contains only options that don't affect amd's functionality
5832174294Sobrien
5833119679Smbr2002-09-04  Ion Badulescu  <ion@guppy.limebrokerage.com>
5834119679Smbr
5835174294Sobrien	* amd/amfs_auto.c (free_continuation): avoid double-free'ing the
5836174294Sobrien	mntfs if there was an error/timeout
5837119679Smbr
5838174294Sobrien2002-09-04  Ion Badulescu  <ion@guppy.limebrokerage.com>
5839174294Sobrien
5840174294Sobrien	* amd/amfs_auto.c (amfs_auto_lookup_mntfs): use ereturn() instead
5841174294Sobrien	of "return NULL" to signal an error to the upper layers
5842174294Sobrien	(amfs_auto_mount): use strdup so the string can be free'd later on
5843174294Sobrien	[Debian bug report from Matt Chapman <matthewc@cse.unsw.edu.au>]
5844174294Sobrien
5845174294Sobrien2002-09-03  Ion Badulescu  <ion@guppy.limebrokerage.com>
5846174294Sobrien
5847174294Sobrien	Patches from George Ross <gdmr@dcs.ed.ac.uk>:
5848174294Sobrien
5849174294Sobrien	* amd/amfs_auto.c (assign_error_mntfs): do not discard old mntfs,
5850174294Sobrien	it will be done in free_continuation(); assorted debugging messages
5851174294Sobrien
5852119679Smbr	* amd/srvr_nfs.c (nfs_timed_out): allocate a new XID on server
5853174294Sobrien	timeout to avoid problems with late ping replies
5854119679Smbr
5855174294Sobrien	* amd/mntfs.c (free_mntfs): sanity check for mf_refc; assorted
5856174294Sobrien	debugging messages
5857174294Sobrien
5858174294Sobrien	* amd/map.c (unmount_node): more verbose debug message
5859174294Sobrien
5860174294Sobrien2002-07-29  Ion Badulescu  <ion@guppy.limebrokerage.com>
5861174294Sobrien
5862174294Sobrien	* amd/amfs_auto.c (amfs_auto_lookup_mntfs): prevent deferencing
5863174294Sobrien	de-allocated memory in str3cat
5864174294Sobrien	(amfs_auto_lookup_mntfs): check for buffer overflow
5865174294Sobrien
5866119679Smbr2002-07-11  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
5867119679Smbr
5868119679Smbr	* scripts/expn.{1,in}: fixed typos as reported by Thomas Klausner
5869119679Smbr	<wiz@danbala.ifoer.tuwien.ac.at>.
5870119679Smbr
5871174294Sobrien2002-06-26  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
5872119679Smbr
5873119679Smbr	* doc/Makefile.am (install-html): don't use locally hacked
5874119679Smbr	texi2html features.
5875119679Smbr
5876174294Sobrien	* conf/transp/transp_sockets.c (amu_get_myaddress): Most modern
5877174294Sobrien	systems should use 127.0.0.1 as the localhost address over which
5878174294Sobrien	you can do NFS mounts.  In the past we found that some NFS clients
5879174294Sobrien	may not allow mounts from localhost.  So we used get_myaddress()
5880174294Sobrien	and that seemed to work.  Alas, on some other systems,
5881174294Sobrien	get_myaddress() may return one of the interface addresses at
5882174294Sobrien	random, and thus use a less efficient IP address than 127.0.0.1.
5883174294Sobrien	The solution is to hard-code 127.0.0.1, but still check if
5884174294Sobrien	get_myaddress() returns a different value and warn about it.
5885174294Sobrien
5886119679Smbr	* doc/am-utils.texi: don't use ':' in @cindex entries.
5887119679Smbr
5888174294Sobrien2002-06-25  Ion Badulescu  <ion@guppy.limebrokerage.com>
5889174294Sobrien
5890174294Sobrien	* Released beta version 6.1b1
5891174294Sobrien
5892119679Smbr2002-06-24  Ion Badulescu  <ionut@moisil.badula.org>
5893119679Smbr
5894119679Smbr	* aux/macros/struct_nfs_args.m4: added test for aix51_nfs_args
5895119679Smbr
5896119679Smbr	* conf/nfs_prot/nfs_prot_aix5_1.h: rename aix42_nfs_args to
5897174294Sobrien	aix51_nfs_args, rename unknown fields to u<number>, add the
5898174294Sobrien	unknown new field into the middle of the old 4.2 structure
5899119679Smbr
5900119679Smbr2002-06-24  Ion Badulescu  <ion@guppy.limebrokerage.com>
5901119679Smbr
5902174294Sobrien	* include/am_compat.h: better test for struct netconfig
5903174294Sobrien	(!HAVE_NETCONFIG_H && !HAVE_SYS_NETCONFIG_H)
5904119679Smbr
5905174294Sobrien	* aux/macros/check_nfs_prot_headers.m4: added new header for aix5.1+
5906174294Sobrien
5907174294Sobrien	* buildall: fix 'buildall -b' on hpux9 and aix5.1
5908174294Sobrien
5909174294Sobrien2002-06-24  Ion Badulescu  <ionut@buggy.badula.org>
5910174294Sobrien
5911174294Sobrien	* INSTALL: updated
5912174294Sobrien
5913174294Sobrien	* conf/autofs/autofs_solaris_v1.c (autofs_link_mount): compile fix
5914174294Sobrien	(autofs_link_umount): ditto
5915174294Sobrien
5916174294Sobrien	* amd/mntfs.c (init_mntfs): don't use autofs if !amd_use_autofs
5917174294Sobrien
5918174294Sobrien2002-06-23  Ion Badulescu  <ionut@moisil.badula.org>
5919174294Sobrien
5920174294Sobrien	* conf/autofs/autofs_linux.c: compile fixes for autofs v3
5921174294Sobrien
5922174294Sobrien2002-06-23  Ion Badulescu  <ionut@moisil.badula.org>
5923174294Sobrien
5924174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c (autofs_mounted): no
5925174294Sobrien	expirations needed;
5926174294Sobrien	(autofs_timeout_mp): likewise
5927174294Sobrien
5928174294Sobrien	* conf/autofs/autofs_solaris_v1.c (autofs_mounted): no expirations
5929174294Sobrien	needed;
5930174294Sobrien	(autofs_timeout_mp): likewise
5931174294Sobrien
5932174294Sobrien	* conf/autofs/autofs_linux.c (autofs_mounted): set the first
5933174294Sobrien	expiration interval
5934174294Sobrien
5935174294Sobrien	* amd/autil.c (am_mounted): call autofs_mounted here, instead of
5936174294Sobrien	in mf_mounted()
5937174294Sobrien
5938174294Sobrien	* amd/amd.h (NEVER): moved here from map.c
5939174294Sobrien	(autofs_mounted): change argument from mntfs* to am_node*
5940174294Sobrien
5941174294Sobrien2002-06-23  Ion Badulescu  <lionut@gonzales.badula.org>
5942174294Sobrien
5943174294Sobrien	* conf/autofs/autofs_linux.c (autofs_mounted): set the kernel
5944174294Sobrien	timeout on the autofs mountpoint to cache_duration (gopt.am_timeo)
5945174294Sobrien	(autofs_timeout_mp): don't update the ttl if we're going down
5946174294Sobrien
5947174294Sobrien	* amd/map.c (timeout_mp): don't call autofs_timeout_mp unless the
5948174294Sobrien	timeout on that particular am_node has expired
5949174294Sobrien
5950174294Sobrien	* conf/autofs/autofs_linux.c (autofs_timeout_mp): really update
5951174294Sobrien	the ttl, as per the comment (compilers are not very good at
5952174294Sobrien	translating comments into code...)
5953174294Sobrien
5954174294Sobrien	* amd/amfs_auto.c (amfs_auto_lookup_one_mntfs): strdup am_path
5955174294Sobrien	instead of opt_rfs into opt_fs for autofs, thus avoiding conflicts
5956174294Sobrien	between link mounts pointing to the same target
5957174294Sobrien
5958174294Sobrien2002-06-23  Ion Badulescu  <lionut@gonzales.badula.org>
5959174294Sobrien
5960174294Sobrien	* conf/autofs/autofs_linux.c (send_fail, send_ready): new helper
5961174294Sobrien	functions for sending messages back to the kernel
5962174294Sobrien	(autofs_expire_one): initial implementation of the kernel-based
5963174294Sobrien	expiration handler
5964174294Sobrien	(autofs_handle_expire): call autofs_expire_one()
5965174294Sobrien	(autofs_handle_expire_multi): ditto
5966174294Sobrien	(autofs_umount_succeeded): search pending_umounts, send message
5967174294Sobrien	back to the kernel
5968174294Sobrien	(autofs_umount_failed): ditto
5969174294Sobrien	(autofs_mount_succeeded): tell amd core not to expire autofs entries
5970174294Sobrien	(autofs_timeout_mp): expiration function for autofs filesystems
5971174294Sobrien	(autofs_timeout_mp_task): helper function for autofs_timeout_mp
5972174294Sobrien
5973174294Sobrien	* conf/autofs/autofs_linux.h: new struct autofs_pending_umount for
5974174294Sobrien	keeping tracking of pending umounts
5975174294Sobrien	(autofs_fh_t) rename pending to pending_mounts, add pending_umounts
5976174294Sobrien
5977174294Sobrien	* conf/autofs/autofs_solaris_v1.c (autofs_timeout_mp): stub
5978174294Sobrien
5979174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c (autofs_timeout_mp): stub
5980174294Sobrien
5981174294Sobrien	* amd/map.c (timeout_mp): call autofs_timeout_mp() for autofs
5982174294Sobrien	filesystems
5983174294Sobrien
5984174294Sobrien	* amd/autil.c (mf_mounted): move here the call autofs_mounted()
5985174294Sobrien	from amfs_auto_mounted().
5986174294Sobrien
5987174294Sobrien2002-06-22  Erez Zadok  <ezk@whitestar.dyn.optonline.net>
5988174294Sobrien
5989174294Sobrien	* amd/nfs_start.c (mount_automounter): Security fix.  if user sets
5990174294Sobrien	-D noamq, don't even create listening socket.  Suggestion by Ed
5991174294Sobrien	Ravin <eravin@panix.com>.
5992174294Sobrien
5993119679Smbr2002-06-22  Ion Badulescu  <lionut@gonzales.badula.org>
5994119679Smbr
5995119679Smbr	* hlfsd/homedir.c (homedir): use setgid() instead of setegid()
5996119679Smbr
5997174294Sobrien	* ALL: #ifdef cleanups, unify some TLI/socket function prototypes
5998119679Smbr
5999174294Sobrien2002-06-22  Erez Zadok  <ezk@whitestar.dyn.optonline.net>
6000119679Smbr
6001174294Sobrien	* conf/nfs_prot/nfs_prot_netbsd1_4.h: minor port to support
6002174294Sobrien	na_gid and na_uid.  NetBSD patch from Jun-ichiro itojun Hagino
6003174294Sobrien	<itojun@iijlab.net>.
6004174294Sobrien
6005174294Sobrien	* doc/am-utils.texi (Option): document xlatecookie mount option.
6006174294Sobrien
6007174294Sobrien	* libamu/mount_fs.c (compute_nfs_args): support "xlatecookie"
6008174294Sobrien	NFS mount option.  Patch from Matthias Scheler <tron@zhadum.de>
6009174294Sobrien	for NetBSD.
6010174294Sobrien
6011174294Sobrien2002-06-22  Ion Badulescu  <ionut@edgar.badula.org>
6012174294Sobrien
6013174294Sobrien	* conf/autofs/autofs_solaris_v1.h: add FS_MBACKGROUND to
6014174294Sobrien	AUTOFS_LINK_FS_FLAGS
6015174294Sobrien
6016174294Sobrien	* conf/autofs/autofs_solaris_v1.c: convert link mounts to lofs
6017174294Sobrien	mounts in autofs_link_mount/umount
6018174294Sobrien
6019174294Sobrien2002-06-22  Ion Badulescu  <lionut@gonzales.badula.org>
6020174294Sobrien
6021174294Sobrien	* configure.in: check for devid inside struct umntrequest
6022174294Sobrien
6023174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c (xdr_umntrequest): handle the
6024174294Sobrien	new umntrequest structure in v4.
6025174294Sobrien	(autofs_unmount_2_req): ditto
6026174294Sobrien
6027174294Sobrien	* README.autofs: updated for Solaris 2.5/2.5.1
6028174294Sobrien
6029174294Sobrien2002-06-22  Erez Zadok  <ezk@whitestar.dyn.optonline.net>
6030174294Sobrien
6031174294Sobrien	* configure.in: only define LDAP/Hesiod if both the headers and
6032174294Sobrien	the libraries exist, and the user didn't explicitly disable those
6033174294Sobrien	maps.
6034174294Sobrien
6035174294Sobrien2002-06-22 Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
6036174294Sobrien
6037174294Sobrien	* doc/am-utils.texi: fix typos.  Can't use ":" in @cindex entries.
6038174294Sobrien
6039174294Sobrien2002-06-22  Erez Zadok  <ezk@whitestar.dyn.optonline.net>
6040174294Sobrien
6041174294Sobrien	* doc/am-utils.texi, scripts/amd.conf.5, scripts/amd.conf-sample,
6042174294Sobrien	amd/amd.8, amd/get_args.c (get_args): document amd -A option.
6043174294Sobrien
6044174294Sobrien	* amd/get_args.c (get_args): support "amd -A arg" option to
6045174294Sobrien	override the system's detected architecture.  Patch from George
6046174294Sobrien	Ross <gdmr@dcs.ed.ac.uk>.
6047174294Sobrien
6048174294Sobrien	* amd/info_ldap.c (amu_ldap_rebind): don't use ldap_enable_cache()
6049174294Sobrien	if the system doesn't have it.
6050174294Sobrien
6051174294Sobrien	* configure.in: detect existence of ldap_enable_cache function,
6052174294Sobrien	because it doesn't exist on Solaris 9's latest ldap libraries.
6053174294Sobrien
6054174294Sobrien	* amd/info_ldap.c: LDAP patches from George Ross
6055174294Sobrien	<gdmr@dcs.ed.ac.uk>.  Rework of old code, support for wildcards in
6056174294Sobrien	LDAP queries, and an FD leak fix.
6057174294Sobrien
6058174294Sobrien2002-06-22  Ion Badulescu  <lionut@gonzales.badula.org>
6059174294Sobrien
6060174294Sobrien	* buildall: use ksh for configure on aix5.1; pass the extra
6061174294Sobrien	arguments after "--" to configure, not to make
6062174294Sobrien
6063119679Smbr	* Makefile.am: added nfs_prot_aix4_3.h to EXTRA_DIST_CONF
6064119679Smbr
6065119679Smbr	* conf/mount/mount_aix.c (mount_aix3): if the NFSv3 mount fails
6066119679Smbr	with EINVAL and we have MOUNT_TYPE_NFS3_BIS defined, retry the
6067119679Smbr	mount with the alternative nfs3_args structure
6068119679Smbr
6069119679Smbr	* conf/nfs_prot/nfs_prot_aix4_3.h: added alternative nfs3_args
6070119679Smbr	structure, similar to that in aix5.1, for a hack that tries to
6071119679Smbr	compensate for IBM's brain fart
6072119679Smbr
6073119679Smbr	* conf/nfs_prot/nfs_prot_aix5_1.h: new nfs_prot header for aix5.1+
6074119679Smbr
6075119679Smbr	* aux/macros/check_nfs_prot_headers.m4: added new header for aix5.1+
6076119679Smbr
6077119679Smbr	* BUGS: update for direct mounts on Linux; document the brokenness
6078119679Smbr	of /bin/sh on AIX 5.1 and HP-UX 9
6079119679Smbr
6080174294Sobrien	* NEWS: aix5.1 port, aix4.3 workaround
6081119679Smbr
6082174294Sobrien2002-06-22 Erez Zadok <ezk@agora.fsl.cs.sunysb.edu>
6083119679Smbr
6084174294Sobrien	* ltmain.sh: use libtool 1.4d, needed support for newer AIX.
6085119679Smbr
6086174294Sobrien2002-06-21  Ion Badulescu  <ion@guppy.limebrokerage.com>
6087174294Sobrien
6088174294Sobrien	* aux/macros/check_autofs_style.m4: enable autofs_v2_v3 for
6089174294Sobrien	all solaris2.6+, not just for 2.[6-8]
6090174294Sobrien
6091174294Sobrien	* conf/autofs/autofs_default.h: disable autofs if configure
6092174294Sobrien	detects it
6093174294Sobrien
6094119679Smbr2002-06-21  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
6095119679Smbr
6096119679Smbr	* aux/macros/with_addon.m4: correct M4 quoting.
6097119679Smbr
6098119679Smbr	* aux/macros/cache_check_dynamic.m4: correct M4 quoting.
6099119679Smbr
6100119679Smbr	* bootstrap: show version of autotools being used.  Helps
6101119679Smbr	maintainer debugging.
6102119679Smbr
6103119679Smbr	* configure.in: new proper syntax for libtool and
6104119679Smbr	ansi2knr-filtering rules, required by autoconf 1.53 and higher.
6105119679Smbr
6106119679Smbr2002-06-21  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
6107119679Smbr
6108119679Smbr	* aux/GNUmakefile: new search paths for "update" target.
6109119679Smbr
6110119679Smbr	* config.guess, config.sub, doc/texinfo.tex, ltmain: updates from
6111119679Smbr	the latest GNU distributions.
6112119679Smbr
6113174294Sobrien2002-06-11  Ion Badulescu  <ion@guppy.limebrokerage.com>
6114174294Sobrien
6115174294Sobrien	* amd/amfs_auto.c (amfs_auto_lookup_child): split part of this
6116174294Sobrien	function into the new amfs_auto_lookup_one_child function; return
6117174294Sobrien	null if all ivecs failed to match
6118174294Sobrien
6119119679Smbr2002-05-30  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
6120119679Smbr
6121119679Smbr	* config.guess.long: support SuSE version names in long
6122119679Smbr	config.guess format.
6123119679Smbr
6124119679Smbr2002-05-01  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
6125119679Smbr
6126119679Smbr	* scripts/lostaltmail.in (vrfy_user): unlink temp files if too
6127119679Smbr	small.
6128119679Smbr
6129174294Sobrien2002-04-07  Ion Badulescu  <ionut@moisil.badula.org>
6130174294Sobrien
6131174294Sobrien	* hlfsd/hlfsd.c (main): compile fix for --enable-debug=no
6132174294Sobrien
6133119679Smbr2002-03-29  Ion Badulescu  <ionut@moisil.badula.org>
6134119679Smbr
6135174294Sobrien	* README.autofs: solaris 2.5/2.5.1 info, other minor changes
6136119679Smbr
6137174294Sobrien	* doc/am-utils.texi (History): document solaris 2.5+ support
6138174294Sobrien
6139174294Sobrien	* include/am_utils.h: new member in struct mntfs: mfs_real_mount;
6140174294Sobrien	autofs_fs_flags becomes conditional of HAVE_AUTOFS_FS; new
6141174294Sobrien	prototype for umount_fs2(); extra argument for UMOUNT_FS()
6142174294Sobrien
6143174294Sobrien	* hlfsd/hlfsd.c: use the new mount_fs2() and UMOUNT_FS()
6144174294Sobrien
6145174294Sobrien	* libamu/mount_fs.c (mount_fs): wrapper around the new mount_fs2()
6146174294Sobrien	function; swap mntdir and real_mntdir as necessary for solaris 2.5
6147174294Sobrien	autofs support
6148174294Sobrien
6149174294Sobrien	* conf/umount/umount_default.c (umount_fs2): swap mntdir and
6150174294Sobrien	real_mntdir as necessary for solaris 2.5 autofs support
6151174294Sobrien
6152174294Sobrien	* conf/umount/umount_*.c (umount_fs): wrapper around the new
6153174294Sobrien	umount_fs2() function
6154174294Sobrien	(umount_fs2): new function which takes the real mountpoint as an
6155174294Sobrien	extra argument
6156174294Sobrien
6157174294Sobrien	* conf/nfs_prot/nfs_prot_sunos5_5.h: allow autofs support to be
6158174294Sobrien	compiled in
6159174294Sobrien
6160174294Sobrien	* conf/autofs/autofs_solaris_v1.h (autofs_strdup_space_hack): new
6161174294Sobrien	function that appends a space at the end of a string (the famous
6162174294Sobrien	"Autofs Space Protocol")
6163174294Sobrien
6164174294Sobrien	* conf/autofs/autofs_solaris_v1.c: almost complete reimplementation
6165174294Sobrien
6166174294Sobrien	* conf/autofs/autofs_*.h (AUTOFS_*_FS_FLAGS): add
6167174294Sobrien	system-specific definitions for these macros
6168174294Sobrien
6169174294Sobrien	* conf/autofs/autofs_linux.c (create_autofs_service): remove hacks
6170174294Sobrien	which are now handled properly by more generic code
6171174294Sobrien	(autofs_link_umount): complain if umount_fs() fails, rmdir the
6172174294Sobrien	mountpoint on success
6173174294Sobrien	(autofs_umount_succeeded): remove the rmdirs() code, now handled
6174174294Sobrien	by generic code
6175174294Sobrien	(autofs_mount_succeeded): ditto
6176174294Sobrien
6177174294Sobrien	* amd/nfs_start.c (checkup): implement it as an emtpy stub if
6178174294Sobrien	DEBUG is not defined
6179174294Sobrien	(run_rpc): call autofs_add_fdset() after umount_exported() to
6180174294Sobrien	avoid passing invalid file descriptors to select(); use plog()
6181174294Sobrien	instead of perror()
6182174294Sobrien
6183174294Sobrien	* amd/mntfs.c (init_mntfs): initialize mf_real_mount from mp
6184174294Sobrien	(uninit_mntfs): free mf_real_mount
6185174294Sobrien
6186174294Sobrien	* amd/autil.c (am_unmounted): don't remove the mount point if a
6187174294Sobrien	remount is pending, also don't make the removal conditional on not
6188174294Sobrien	being an autofs mount point
6189174294Sobrien
6190174294Sobrien	* amd/amfs_nfsx.c (amfs_nfsx_remount): call mkdirs() on
6191174294Sobrien	mf->mf_real_mount instead of mf->mf_mount
6192174294Sobrien
6193174294Sobrien	* amd/amfs_nfsl.c, amd/amfs_nfsx.c: (amfs_nfsl_umounted): call
6194174294Sobrien	rmdirs() on mf->mf_real_mount instead of mf->mf_mount
6195174294Sobrien
6196174294Sobrien	* amd/amfs_host.c (make_mntpt): change the third argument to be
6197174294Sobrien	the mountpoint, not the entire mntfs structure
6198174294Sobrien	(do_mount): takes real_mntdir as an extra argument
6199174294Sobrien
6200174294Sobrien	* amd/amfs_auto.c (amfs_auto_bgmount): move the creation of the
6201174294Sobrien	mountpoint here from try_mount(), otherwise the change to mf_flags
6202174294Sobrien	is lost for background mounts; remove the mountpoint if we created
6203174294Sobrien	it and the mount fails
6204174294Sobrien	(amfs_auto_lookup_mntfs): re-initialize mf->mf_real_mount using
6205174294Sobrien	autofs_strdup_space_hack() if NEED_AUTOFS_SPACE_HACK is defined
6206174294Sobrien
6207174294Sobrien	* amfs_*.c, ops_*.c: initialize autofs_fs_flags using the
6208174294Sobrien	AUTOFS_*_FS_FLAGS macro defined in the system-specific autofs
6209174294Sobrien	header; UMOUNT_FS() takes mf->mf_real_mount as an extra argument;
6210174294Sobrien	mount_fs() becomes mount_fs2() and takes mf->mf_real_mount as an
6211174294Sobrien	extra argument
6212174294Sobrien
6213174294Sobrien	* amd/amd.h, amd/ops_nfs.c, amd/amfs_host.c: mount_nfs_fh takes
6214174294Sobrien	the real mountpoint as an additional argument
6215174294Sobrien
6216119679Smbr2002-03-28  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
6217119679Smbr
6218174294Sobrien	* amd/ops_cdfs.c (mount_cdfs): correctly interpret error return
6219174294Sobrien	values back from mount_fs().  Return correct error number from
6220174294Sobrien	this function.
6221174294Sobrien
6222174294Sobrien	* conf/mount/mount_linux.c (do_mount_linux): cleanup loop mount
6223174294Sobrien	cruft from this function, moved elsewhere.
6224174294Sobrien	(mount_linux): prepare for loop-device mounts of ISO images.
6225174294Sobrien
6226174294Sobrien2002-03-28  Ion Badulescu  <ionut@buggy.badula.org>
6227174294Sobrien
6228174294Sobrien	* libamu/Makefile.am (EXTRA_DIST): added strerror.c
6229174294Sobrien
6230174294Sobrien	* libamu/strerror.c: strerror() implementation for systems lacking it
6231174294Sobrien
6232174294Sobrien	* doc/am-utils.texi (History): rewrote the history :) about autofs
6233174294Sobrien	support
6234174294Sobrien
6235174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c: updated copyright;
6236174294Sobrien	(autofs_unmount_2_req): minor cleanup
6237174294Sobrien	(create_autofs_service): print log message
6238174294Sobrien	(destroy_autofs_service): ditto
6239174294Sobrien
6240174294Sobrien	* conf/autofs/autofs_linux.c: updated copyright
6241174294Sobrien
6242174294Sobrien	* amd/nfs_start.c (mount_automounter): move the debug message into
6243174294Sobrien	create_autofs_service()
6244174294Sobrien
6245174294Sobrien	* amd/amd.c (main): call destroy_autofs_service() before
6246174294Sobrien	going_down(), not after
6247174294Sobrien
6248174294Sobrien	* configure.in: added strerror to AC_CHECK_FUNCS(); disable ldap
6249174294Sobrien	if the ldap headers are not found
6250174294Sobrien
6251174294Sobrien2002-03-28  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
6252174294Sobrien
6253119679Smbr	* amd/info_ldap.c: patch from "Sebastien Bahloul"
6254119679Smbr	<sebastien.bahloul@medasys.org> to fix a simple initialization bug
6255119679Smbr	and change "HE" to HE_ENT so as to compile on HPUX.
6256119679Smbr
6257174294Sobrien2002-02-26  Erez Zadok  <ezk@t3.fsl.cs.sunysb.edu>
6258174294Sobrien
6259174294Sobrien	* conf/nfs_prot/nfs_prot_freebsd3.h (na_uid): freebsd4.5 uses nfs
6260174294Sobrien	atttributes field named "uid".  So #define na_uid to it.
6261174294Sobrien
6262119679Smbr2002-02-12  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
6263119679Smbr
6264119679Smbr	* scripts/lostaltmail.in: don't verify user if -noverify option
6265119679Smbr	was turned on.  fix comment typo.
6266119679Smbr
6267174294Sobrien2002-02-11  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
6268119679Smbr
6269174294Sobrien	* amd/Makefile.am (TESTS): enable one test script, test1.sh.
6270119679Smbr
6271174294Sobrien	* amd/test1.sh: re-commit simple test script.
6272174294Sobrien
6273119679Smbr2002-02-11  Ion Badulescu  <ion@guppy.limebrokerage.com>
6274119679Smbr
6275174294Sobrien	* Released snapshot 6.1a5
6276174294Sobrien
6277174294Sobrien	* NEWS: Solaris autofs readdir() support, Linux autofs sublink fix
6278174294Sobrien
6279119679Smbr	* README: require newer auto-tools, update mailing list address
6280119679Smbr
6281174294Sobrien	* README.autofs: major update
6282119679Smbr
6283174294Sobrien	* configure.in: version changed to 6.1a5
6284174294Sobrien
6285174294Sobrien2002-02-11  Ion Badulescu  <ionut@moisil.badula.org>
6286174294Sobrien
6287174294Sobrien	* conf/autofs/autofs_linux.c (autofs_link_mount): don't do a
6288174294Sobrien	stat() on the am_link if called from the parent amd, to prevent
6289174294Sobrien	deadlocks
6290174294Sobrien
6291174294Sobrien	* amd/autil.c (am_unmounted): call amfs_link_ops.umount_fs if the
6292174294Sobrien	fstype is not link but we have a sublink (Linux autofs needs this)
6293174294Sobrien	(am_mounted): call amfs_link_ops.mount_fs if the fstype is not
6294174294Sobrien	link but we have a sublink (Linux autofs needs this)
6295174294Sobrien
6296174294Sobrien	* amd/amfs_auto.c (amfs_auto_bgmount): print the real mountpoint,
6297174294Sobrien	not the amd entry point
6298174294Sobrien
6299174294Sobrien2002-02-09  Ion Badulescu  <ionut@moisil.badula.org>
6300174294Sobrien
6301174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c (amd_rddirres): new custom
6302174294Sobrien	structure for returning the results from readdir_2()
6303174294Sobrien	(xdr_amd_putrddirres): renamed from xdr_autofs_putrddirres,
6304174294Sobrien	changed to process our internal format (which is essentially the
6305174294Sobrien	NFS readdir format)
6306174294Sobrien	(xdr_autofs_getrddirres): not needed, deleted
6307174294Sobrien	(xdr_amd_rddirres): renamed from xdr_autofs_rddirres, other
6308174294Sobrien	changes to handle amd_rddirres instead of autofs_rddirres
6309174294Sobrien	(autofs_lookup_2_req): return AUTOFS_NONE instead of
6310174294Sobrien	AUTOFS_MOUNT_RQ, to prevent mount storms during ls -F
6311174294Sobrien	(autofs_readdir_2_req): implemented
6312174294Sobrien	(autofs_readdir_2_free): not needed, deleted
6313174294Sobrien	(autofs_program_2): changes from autofs_rddirres to amd_rddirres
6314174294Sobrien	(autofs_get_fh): changed initialization of the fh->map member, it
6315174294Sobrien	now gets the mountpoint path because it makes it easier to
6316174294Sobrien	implement readdir
6317174294Sobrien	(autofs_release_fh): put #ifdef HAVE_AUTOFS_ARGS_T_ADDR around
6318174294Sobrien	code touching fh->addr
6319174294Sobrien	(destroy_autofs_service): new function, deregister the autofs
6320174294Sobrien	service with the portmapper on exit
6321174294Sobrien
6322174294Sobrien	* conf/autofs/autofs_linux.c (autofs_handle_missing): update
6323174294Sobrien	statistics
6324174294Sobrien	(destroy_autofs_service): new stub
6325174294Sobrien
6326174294Sobrien	* amd/mapc.c (mapc_find): fixed indentation
6327174294Sobrien
6328174294Sobrien	* amd/map.c (find_ap_recursive): renamed from find_ap2(), made
6329174294Sobrien	static
6330174294Sobrien
6331174294Sobrien	* amd/amd.h: removed prototype for find_ap2(), added prototype for
6332174294Sobrien	destroy_autofs_service()
6333174294Sobrien
6334174294Sobrien	* amd/amd.c (main): call destroy_autofs_service() before going
6335174294Sobrien	down
6336174294Sobrien
6337174294Sobrien2002-02-07  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
6338174294Sobrien
6339174294Sobrien	* aux/macros/check_field.m4: need also a new version of
6340174294Sobrien	AC_CHECK_MEMBERS (plural).
6341174294Sobrien
6342174294Sobrien2002-02-06  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
6343174294Sobrien
6344174294Sobrien	* aux/macros/check_field.m4: include a fixed version of
6345174294Sobrien	AC_CHECK_MEMBER.  g/cc will fail to check a member if the .member
6346174294Sobrien	is itself a data structure, because you cannot compare, in C, a
6347174294Sobrien	data structure against NULL; you can compare a native data type
6348174294Sobrien	(int, char) or a pointer.  Solution: do what I did in my original
6349174294Sobrien	member checking macro: try to take the address of the member.  You
6350174294Sobrien	can always take the address of anything.
6351174294Sobrien
6352174294Sobrien2002-01-31  Erez Zadok  <ezk@localhost.localdomain>
6353174294Sobrien
6354174294Sobrien	* remove old '%W%' SCCS IDs from all sources.
6355174294Sobrien
6356174294Sobrien2002-01-21  Ion Badulescu  <ionut@moisil.badula.org>
6357174294Sobrien
6358174294Sobrien	* conf/mount/mount_linux.c (mount_linux): fix breakage introduced
6359174294Sobrien	by the loop device mount support. Linux mount takes a real string
6360174294Sobrien	as the last argument, unless the mount type is NFS, NCP, or SMB.
6361174294Sobrien
6362119679Smbr2002-01-20  Erez Zadok  <ezk@localhost.localdomain>
6363119679Smbr
6364119679Smbr	* hlfsd/hlfsd.h (HLFSD_VERSION): up version of hlfsd to 1.2,
6365119679Smbr	because we made some important changes.
6366119679Smbr
6367119679Smbr2002-01-20  Ion Badulescu  <lionut@gonzales.badula.org>
6368119679Smbr
6369174294Sobrien	* include/am_utils.h (D_ALL): do not include D_MTAB and D_HRTIME
6370174294Sobrien	by default
6371174294Sobrien
6372119679Smbr	* NEWS: document latest changes
6373119679Smbr
6374119679Smbr	* amd/map.c (unmount_mp): same fix as for hlfsd, update the
6375119679Smbr	seconds field in mtime because Linux ignores the useconds field
6376119679Smbr
6377119679Smbr	* hlfsd/homedir.c: made some global vars static
6378119679Smbr	(plt_init): remove all trailing '/' chars from root's home;
6379119679Smbr	use root's home, not the username (silly bugfix)
6380119679Smbr
6381119679Smbr2002-01-20  Ion Badulescu  <lionut@gonzales.badula.org>
6382119679Smbr
6383119679Smbr	* hlfsd/homedir.c (homedir): don't special case uid 0 as having /
6384174294Sobrien	as home; instead use the root account's home
6385119679Smbr	(plt_init): properly initialize root_home from the root account's
6386119679Smbr	home directory, or as "" if root doesn't exist
6387119679Smbr	(plt_reset): free root_home
6388119679Smbr
6389174294Sobrien2002-01-20  Erez Zadok  <ezk@localhost.localdomain>
6390119679Smbr
6391174294Sobrien	* hlfsd/stubs.c (nfsproc_{lookup,getattr}_2_svc): non-SYMTTL code.
6392174294Sobrien	Increment seconds, not microseconds (which are ignored by NFS).
6393174294Sobrien	Set symlink owner to euid.
6394119679Smbr
6395174294Sobrien	* hlfsd/homedir.c (homedir): pass gid to this function, so we can
6396174294Sobrien	also change the effective GID of the process writing to the user's
6397174294Sobrien	home dir, as well as the group of the hlfsd symlink.
6398174294Sobrien	(homedir): run setegid in the right places.
6399119679Smbr
6400174294Sobrien2002-01-15  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
6401119679Smbr
6402174294Sobrien	* scripts/redhat-ctl-amd.in: refer to @sbindir@ not
6403174294Sobrien	${prefix}/sbin.
6404174294Sobrien
6405174294Sobrien	* scripts/ctl-{amd,hlfsd}.in: refer to @sysconfdir@ not
6406174294Sobrien	${prefix}/etc.  Bug report from "A Braunsdorf"
6407174294Sobrien	<ab@eas.purdue.edu>.
6408174294Sobrien
6409174294Sobrien2002-01-13  Erez Zadok  <ezk@localhost.localdomain>
6410174294Sobrien
6411174294Sobrien	* configure.in: only check for clock_gettime if --enable-debug was
6412174294Sobrien	used.
6413174294Sobrien
6414174294Sobrien	* aux/macros/opt_debug.m4: define a cache variable to record value
6415174294Sobrien	of debug option used.
6416174294Sobrien
6417174294Sobrien	* libamu/xutil.c (show_time_host_and_name): do not use
6418174294Sobrien	clock_gettime unless debugging was compiled in.  This way, if
6419174294Sobrien	debugging is not compiled, we don't bother linking with librt,
6420174294Sobrien	libpthread, and a whole lot of other libraries that aren't that
6421174294Sobrien	necessary (esp. on Linux).
6422174294Sobrien
6423174294Sobrien2002-01-12  Erez Zadok  <ezk@wavy.dyn.optonline.net>
6424174294Sobrien
6425174294Sobrien	* doc/am-utils.texi (opts Option): document loop option.
6426174294Sobrien
6427174294Sobrien	* include/am_utils.h: each mounted file system (mntfs) should
6428174294Sobrien	optionally store the loop device used in the field mf_loopdev.
6429174294Sobrien
6430174294Sobrien	* conf/nfs_prot/nfs_prot_linux.h: define HAVE_LOOP_DEVICE and some
6431174294Sobrien	loop function extern definitions.  For now this code is here
6432174294Sobrien	because we only support loop devices on Linux.
6433174294Sobrien
6434174294Sobrien	* conf/mount/mount_linux.c: recognize "loop" as a valid iso9660
6435174294Sobrien	mount option.
6436174294Sobrien	(parse_opts): when skipping over unknown mount options, skip over
6437174294Sobrien	"loop" (since it was given in amd map entry), but not over
6438174294Sobrien	loop=/dev/loopX, because the latter will go into /etc/mtab.
6439174294Sobrien	(do_mount_linux): override actual cdfs mounted  device name
6440174294Sobrien	because with loop devices you don't mount the .iso file directly,
6441174294Sobrien	but the /dev/loopX device that was setup for it.
6442174294Sobrien	(show_loop, is_loop_device, find_unused_loop_device,
6443174294Sobrien	setup_loop_device, delete_loop_device): support code for loop
6444174294Sobrien	devices.
6445174294Sobrien
6446174294Sobrien	* amd/ops_cdfs.c (mount_cdfs): pass loop device name to function.
6447174294Sobrien	setup loop device before isofs mount, if "loop" option was given,
6448174294Sobrien	before actual mount(2).
6449174294Sobrien	(cdfs_mount): pass loopdev name to mount_cdfs().
6450174294Sobrien	(cdfs_umount): delete/unset loop device after a successful
6451174294Sobrien	unmount, if a loop device was used.
6452174294Sobrien
6453174294Sobrien	* amd/mntfs.c (init_mntfs): initialize mf_loopdev to NULL.
6454174294Sobrien
6455174294Sobrien	* include/am_compat.h: If loop device (header file) exists, define
6456174294Sobrien	mount table option MNTTTAB_OPT_LOOP.
6457174294Sobrien
6458174294Sobrien	* conf/nfs_prot/nfs_prot_linux.h: hack: define HAVE_LOOP_DEVICE
6459174294Sobrien	here until we have a better way to detect /dev/loop devices.
6460174294Sobrien
6461174294Sobrien	* include/am_defs.h: include <linux/loop.h> if it exists.  Define
6462174294Sobrien	LARGEFILE support macros, possibly needed for loop devices.
6463174294Sobrien	Redefine dev_t apropriately for loop devices.
6464174294Sobrien
6465174294Sobrien	* configure.in: check for <linux/loop.h>.
6466174294Sobrien
6467119679Smbr2002-01-10  Ion Badulescu  <ion@guppy.limebrokerage.com>
6468119679Smbr
6469119679Smbr	* conf/mount/mount_linux.c (mount_linux): tcp _must_ have a timeo
6470119679Smbr	parameter 2 orders of magnitude larger than udp (patch from Trond
6471119679Smbr	Myklebust)
6472119679Smbr
6473174294Sobrien2002-01-09  Erez Zadok  <ezk@localhost.localdomain>
6474174294Sobrien
6475174294Sobrien	* aux/macros/linux_headers.m4: properly [quote] a long string in
6476174294Sobrien	m4 and use AC_MSG_WARN.
6477174294Sobrien
6478174294Sobrien	* ALL: put /* comments */ on #else/#endif lines everywhere.
6479174294Sobrien
6480174294Sobrien	* configure.in, aux/macros/with_addon.m4: due to limitation of
6481174294Sobrien	AC_HELP_STRING, pass 2nd arg to AMU_WITH_ADDON, listing name of
6482174294Sobrien	package for help string.
6483174294Sobrien
6484174294Sobrien	* doc/am-utils.texi (FSinfo): fixed various texinfo errors in the
6485174294Sobrien	FSinfo section of the manual.
6486174294Sobrien	(map_reload_interval Parameter): document new amd.conf global
6487174294Sobrien	parameter.
6488174294Sobrien
6489174294Sobrien	* scripts/amd.conf.5 document new global option
6490174294Sobrien	map_reload_interval.  Sort entries for nfs_vers and nfs_proto
6491174294Sobrien	alphabetically.
6492174294Sobrien
6493174294Sobrien	* amd/nfs_start.c (do_select): increment do_mapc_reload's value by
6494174294Sobrien	global map_reload_interval value, not by fixed ONE_HOUR.
6495174294Sobrien
6496174294Sobrien	* amd/amd.c (main): increment do_mapc_reload's value by global
6497174294Sobrien	map_reload_interval value, not by fixed ONE_HOUR.
6498174294Sobrien
6499174294Sobrien	* scripts/amd.conf-sample (map_reload_interval): usage example
6500174294Sobrien
6501174294Sobrien	* amd/amd.c (init_global_options): initialize map_reload_interval
6502174294Sobrien	to 3600 seconds.
6503174294Sobrien
6504174294Sobrien	* amd/conf.c (gopt_map_reload_interval): support a new global
6505174294Sobrien	amd.conf option map_reload_interval, to determine how often (in
6506174294Sobrien	seconds) Amd should check if the map source has changed and then
6507174294Sobrien	reload it it.  This value was hard-coded to one hour, now it's the
6508174294Sobrien	default if not otherwise specified.
6509174294Sobrien
6510174294Sobrien	* doc/am-utils.texi (plock Parameter): document plock=yes option
6511174294Sobrien	as using mlockall(2) if found.
6512174294Sobrien
6513174294Sobrien	* scripts/amd.conf.5: document -S option as using mlockall(2) if
6514174294Sobrien	found.
6515174294Sobrien
6516174294Sobrien	* include/am_defs.h: include <sys/mman.h> if it exists.
6517174294Sobrien
6518174294Sobrien	* configure.in: check for mlockall() function.  Check for
6519174294Sobrien	sys/mman.h.
6520174294Sobrien
6521174294Sobrien	* amd/amd.c (main): support mlockall() on systems that have it and
6522174294Sobrien	don't have plock(3) for plock=yes.  On systems that have both,
6523174294Sobrien	will try plock() first and then mlockall(), until one of them (if
6524174294Sobrien	any) succeeds.
6525174294Sobrien
6526174294Sobrien2002-01-09  Erez Zadok  <ezk@whitestar.dyn.optonline.net>
6527174294Sobrien
6528174294Sobrien	* aux/macros/opt_debug.m4, opt_cppflags.m4, opt_amu_cflags.m4,
6529174294Sobrien	with_addon.m4 (ac_upcase): fix help string formatting using
6530174294Sobrien	AC_HELP_STRING.
6531174294Sobrien
6532174294Sobrien	* amd/test1.sh: simple test script for "make check".  Runs "amd
6533174294Sobrien	-v".
6534174294Sobrien
6535174294Sobrien	* amd/Makefile.am (TESTS): add one simple test script, running
6536174294Sobrien	"amd -v" and checking its return value.  More tests can be added.
6537174294Sobrien
6538174294Sobrien	* aux/macros/linux_headers.m4: use AC_MSG_WARN directly.
6539174294Sobrien
6540174294Sobrien	* aux/macros/*.m4: avoid the cumbersome "changequote" M4 command.
6541174294Sobrien	Instead, list bracketed regexp patterns in [[double brackets]].
6542174294Sobrien
6543174294Sobrien	* aux/macros/header_templates.m4: remove all unnecessary
6544174294Sobrien	HAVE_FIELD_* definitions, now that we're using autoconf's new
6545174294Sobrien	AC_CHECK_MEMBERS.
6546174294Sobrien
6547174294Sobrien	* aux/macros/field_mntent_t_mnt_time_string.m4: don't call
6548174294Sobrien
6549174294Sobrien	* configure.in: use new syntax for AMU_CHECK_FIELD
6550174294Sobrien
6551174294Sobrien	* aux/macros/check_field.m4: use new and simpler macro
6552174294Sobrien	AC_CHECK_MEMBERS.  Change all sources to use HAVE_aggregate.member
6553174294Sobrien	instead of HAVE_FIELD_aggregate.member.
6554174294Sobrien
6555174294Sobrien	* aux/amdgrep: simple utility script to egrep the am-utils sources
6556174294Sobrien	for any pattern.
6557174294Sobrien
6558174294Sobrien	* aux/macros/{check_mnttab_style.m4, check_mount_style.m4,
6559174294Sobrien	check_umount_style.m4, check_network_transport_type.m4}: use newer
6560174294Sobrien	AC_LIBOBJ macros instead of modifying $LIBOBJS directly
6561174294Sobrien
6562174294Sobrien	* aux/macros/func_bad_memcmp.m4: redefine to use native
6563174294Sobrien	AC_FUNC_MEMCMP, and then define HAVE_BAD_MEMCMP as needed.
6564174294Sobrien
6565174294Sobrien	* fsinfo/fsi_gram.y, amd/conf_parse.y: indent #pragma command so
6566174294Sobrien	pre-ANSI C compilers will ignore it.
6567174294Sobrien
6568174294Sobrien	* conf/autofs/autofs_linux.c (autofs_link_mount): call s/getpgrp()
6569174294Sobrien	correctly depending on whether it takes a void or a 0.
6570174294Sobrien
6571174294Sobrien	* configure.in: check if s/getpgrp() takes void or a 0.
6572174294Sobrien
6573174294Sobrien2002-01-08  Erez Zadok  <ezk@whitestar.dyn.optonline.net>
6574174294Sobrien
6575174294Sobrien	* configure.in: use the newer AC_CONFIG_LINKS instead of
6576174294Sobrien	AC_LINK_FILES.
6577174294Sobrien
6578174294Sobrien	* aux/macros/check_autofs_style.m4, check_checkmount_style.m4,
6579174294Sobrien	check_mnttab_style.m4, check_mount_style.m4,
6580174294Sobrien	check_network_transport_type.m4, check_umount_style.m4,
6581174294Sobrien	check_nfs_prot_headers.m4: removed backward compatible code for
6582174294Sobrien	pre-autoconf-2.14.
6583174294Sobrien
6584174294Sobrien2002-01-07  Erez Zadok  <ezk@whitestar.dyn.optonline.net>
6585174294Sobrien
6586174294Sobrien	* doc/Makefile.am: define @SET_MAKE@ for AC_PROG_MAKE_SET macro, since
6587174294Sobrien	this Makefile could explicitly chdir to other directories and run
6588174294Sobrien	make there.
6589174294Sobrien	(install-ps): use ${MAKE} with ${MFLAGS}.
6590174294Sobrien
6591174294Sobrien	* Makefile.am (EXTRA_DIST_AUX): distribute new package_*.m4 files.
6592174294Sobrien	Define @SET_MAKE@ for AC_PROG_MAKE_SET macro, since this Makefile
6593174294Sobrien	could explicitly chdir to other directories and run make there.
6594174294Sobrien	(install-snapshot): use ${MAKE} ${MFLAGS}, not hardcoded "make".
6595174294Sobrien
6596174294Sobrien	* configure.in: call AC_PROG_MAKE_SET to check if make program
6597174294Sobrien	defines $MAKE variable.
6598174294Sobrien
6599174294Sobrien	* amd/get_args.c (get_version_string): use new PACKAGE_* macros
6600174294Sobrien	and also report the bug-reporting address.
6601174294Sobrien
6602174294Sobrien	* aux/macros/package_{name,version}.m4, header_templates.m4: using
6603174294Sobrien	new PACKAGE_{NAME,VERSION,BUGREPORT} macros.
6604174294Sobrien
6605174294Sobrien	* aux/macros/name_bugreport.m4: simple macro to print out the
6606174294Sobrien	bug-reporting address which was configured in AC_INIT.
6607174294Sobrien
6608174294Sobrien	* bootstrap: remove new autoconf messages about misuse of
6609174294Sobrien	m4_patsubst and m4_regexp (internal GNU M4 macros).
6610174294Sobrien
6611174294Sobrien	* configure.in: remove old comment above AC_OUTPUT.
6612174294Sobrien	Use AC_CONFIG_FILES and AC_OUTPUT separately.
6613174294Sobrien	Fix AC_REVISION use.
6614174294Sobrien	Add AC_COPYRIGHT.
6615174294Sobrien	Use new style for AC_INIT, listing package name, version, and
6616174294Sobrien	bug-reporting address.
6617174294Sobrien	Call new AMU_PACKAGE_* macros.
6618174294Sobrien
6619174294Sobrien	* updated copyright year to 2002 on all files
6620174294Sobrien
6621174294Sobrien	* configure.in: using newly renamed am-utils macros (AMU_*)
6622174294Sobrien
6623174294Sobrien	* aux/macros/*.m4: renamed ALL am-utils specific macros so they
6624174294Sobrien	start with AMU_*, not AC_*.  That way it is easier to distinguish
6625174294Sobrien	between macros that come with am-utils and those that are part of
6626174294Sobrien	Autoconf or Automake.  It helps to identify those am-utils macros
6627174294Sobrien	that can be removed once there is generic support for them in a
6628174294Sobrien	future version of Autoconf.
6629174294Sobrien
6630174294Sobrien	* bootstrap: run automake --copy
6631174294Sobrien	remove autom4te.cache dir before rerunning autoconf
6632174294Sobrien
6633119679Smbr2001-12-13  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
6634119679Smbr
6635119679Smbr	* scripts/amd.conf.5: correct title to section 5, not 8.  Correct
6636119679Smbr	reversed meaning of nfs_proto and nfs_vers parameters.  Typos
6637119679Smbr	reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
6638119679Smbr
6639119679Smbr2001-12-02  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
6640119679Smbr
6641119679Smbr	* scripts/ctl-amd.in: run "test" or "[" in front of -x/-f
6642119679Smbr
6643119679Smbr	* scripts/ctl-hlfsd.in: run "test" or "[" in front of -x/-f
6644119679Smbr
6645174294Sobrien2001-12-02  Ion Badulescu  <ionut@moisil.badula.org>
6646174294Sobrien
6647174294Sobrien	* hlfsd/homedir.c (plt_print): fix typo (s/plot/plog/) in
6648174294Sobrien	non-mkstemp code
6649174294Sobrien
6650174294Sobrien	* scripts/ctl-amd.in: touch/remove /var/lock/subsys/amd to make RH
6651174294Sobrien	happy
6652174294Sobrien
6653174294Sobrien	* scripts/ctl-hlfsd.in: ditto (for hlfsd)
6654174294Sobrien
6655174294Sobrien	* conf/mtab/mtab_file.c (rewrite_mtab): fchmod(644) the file we
6656174294Sobrien	get from mkstemp(), otherwise samba becomes very unhappy (sigsegv)
6657174294Sobrien
6658174294Sobrien	* conf/mtab/mtab_mach3.c (rewrite_mtab): ditto
6659174294Sobrien
6660119679Smbr2001-11-29  Ion Badulescu  <ion@guppy.limebrokerage.com>
6661119679Smbr
6662119679Smbr	* tasks: updated
6663119679Smbr
6664174294Sobrien	* NEWS: document the fixed autofs fd leak
6665174294Sobrien
6666119679Smbr	* amq/amq.8: better document the -f option
6667119679Smbr
6668119679Smbr2001-11-29  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
6669119679Smbr
6670174294Sobrien	* libamu/mount_fs.c (mnt_flags): same this as for nolock option
6671119679Smbr	handling, do for maxgrps.
6672119679Smbr
6673174294Sobrien2001-11-29  Ion Badulescu  <ion@guppy.limebrokerage.com>
6674174294Sobrien
6675174294Sobrien	* conf/autofs/autofs_linux.c (hash_init): determine the max number
6676174294Sobrien	of fd's at runtime, use it to dynamically scale the hash and list
6677174294Sobrien	arrays
6678174294Sobrien	(autofs_get_fh): sanity check, don't allow a pipe() fd greater
6679174294Sobrien	than autofs_max_fds
6680174294Sobrien	(autofs_release_fh): close our end of the pipe here (no clue why
6681174294Sobrien	or when it got commented out)
6682174294Sobrien	(autofs_mounted): set kernelfd to -1 after closing it
6683174294Sobrien
6684119679Smbr2001-11-28  Philippe Troin  <phil@fifi.org>
6685119679Smbr
6686119679Smbr	* libamu/mount_fs.c (mnt_flags): Drop nolock from generic mount
6687119679Smbr	opts.
6688119679Smbr	(compute_nfs_args): Added nolock handling.
6689119679Smbr	Adapted from an original patch from Avery Pennarun <apenwarr@nit.ca>.
6690119679Smbr
6691119679Smbr2001-11-27  Erez Zadok  <ezk@a-hpux11i.fsl.cs.sunysb.edu>
6692119679Smbr
6693119679Smbr	* ported to ia64-hp-hpux11.20 using HP's ANSI/C compiler.
6694119679Smbr	Couldn't use bison/flex because of 32-bit vs. 64-bit binaries
6695174294Sobrien	issues.  Had to use HP's own yacc/lex.
6696119679Smbr
6697119679Smbr2001-11-26  Erez Zadok  <ezk@a-hpux11i.fsl.cs.sunysb.edu>
6698119679Smbr
6699119679Smbr	* */Makefile.am: don't use $(OBJECTS) directly because it is no
6700119679Smbr	longer automatically defined now that Automake has automatic
6701119679Smbr	dependency tracking (which I turn off).  Instead, hard-code
6702119679Smbr	minimal dependencies on am-utils' header files to depend on
6703174294Sobrien	PROG_OBJECTS (where PROG is the program name being built).  This
6704174294Sobrien	was discovered by using HP's non-GNU make program.
6705119679Smbr
6706119679Smbr	* amd/nfs_start.c (checkup): cast getpagesize() return val to
6707119679Smbr	long, to avoid conflicts in division of a long by an int (on
6708119679Smbr	hpux11i, with their ANSI/C compiler).
6709119679Smbr
6710119679Smbr 	* INSTALL, doc/am-utils.texi: port updates
6711119679Smbr
6712119679Smbr	* minor new ports: ia64-hp-hpux11.20, i386-unknown-freebsd5.0,
6713119679Smbr	i386-unknown-freebsd4.4, i386-pc-linux-rh7.2,
6714119679Smbr	ia64-unknown-linux-rh7.1.
6715119679Smbr
6716119679Smbr	* include/am_defs.h: actually declare extern definition for
6717119679Smbr	xdr_callmsg() if it doesn't already exist.
6718119679Smbr
6719119679Smbr	* aux/macros/header_templates.m4: declare template for
6720119679Smbr	HAVE_EXTERN_XDR_CALLMSG.
6721119679Smbr
6722119679Smbr	* configure.in: check for extern definition for xdr_callmsg()
6723119679Smbr	because hpux11 has that function but a bad <rpc/xdr.h> header file
6724119679Smbr	that doesn't define it in the right place.
6725119679Smbr
6726119679Smbr	* libamu/mount_fs.c (print_nfs_args): cast ->rdev to u_long b/c
6727119679Smbr	on hpux11 its type is dev_t.
6728119679Smbr
6729119679Smbr	* conf/nfs_prot/nfs_prot_hpux11.h: don't support autofs on hpux11
6730119679Smbr	yet.
6731119679Smbr
6732119679Smbr2001-11-16  Erez Zadok  <ezk@fsl-gw.fsl.cs.sunysb.edu>
6733119679Smbr
6734119679Smbr	* buildall (Usage): separate $cnf_flags and $extra_cnf_flags due
6735119679Smbr	to /bin/sh limitations.
6736119679Smbr
6737119679Smbr	* bootstrap (cmd): turn back on --ignore-deps (this Automake may
6738119679Smbr	have problems)
6739119679Smbr
6740174294Sobrien	* libamu/xutil.c: remove __attribute__ format_arg statement for
6741119679Smbr	expand_error() because this function, although taking a
6742119679Smbr	printf-like string, does not use it in a printf function; it only
6743119679Smbr	expands a non-printf amd-special syntax %m.
6744119679Smbr
6745119679Smbr2001-11-14  Erez Zadok  <ezk@fsl-gw.fsl.cs.sunysb.edu>
6746119679Smbr
6747119679Smbr	* conf/nfs_prot/nfs_prot_linux.h: define KERNEL_VERSION macro
6748119679Smbr	before using it because older Linux systems don't define this
6749119679Smbr	(e.g., Red Hat 4.2)
6750119679Smbr
6751119679Smbr2001-11-13  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
6752119679Smbr
6753119679Smbr	* configure.in: convert to using autoconfig 2.52.  Use new macros.
6754119679Smbr	AC_MSG_NOTICE for messages; AH_TOP and AH_BOTTOM to top and bottom
6755119679Smbr	parts of autogenerated config.h.in; increase autoconf
6756119679Smbr	pre-requisite to version 2.50; use AC_DISABLE_SHARED not
6757119679Smbr	AM_DISABLE_SHARED.
6758119679Smbr
6759119679Smbr	* aux/macros/cache_check_dynamic.m4: finally I can use the new
6760119679Smbr	$ECHO_N syntax in macros instead of $ac_n, since I'm using a new
6761119679Smbr	autoconf.  Isn't it nice to be such forward looking and having
6762119679Smbr	placed a comment "XXX: use the next line for autoconf-2.14 and
6763119679Smbr	newer"... :-)
6764119679Smbr
6765119679Smbr	* aux/macros/save_state.m4: highlight message with ***'s
6766119679Smbr
6767119679Smbr	* aux/macros/host_macros.m4: use proper M4 quoting ([], not "")
6768119679Smbr
6769119679Smbr	* config.{guess,sub}: upated from latest prep ftp distributions
6770174294Sobrien
6771119679Smbr	* depcomp, missing, mkinstalldirs: upated from latest Automake 1.5
6772119679Smbr
6773119679Smbr	* ltmain.sh: updated from latest Libtool 1.4.2
6774174294Sobrien
6775119679Smbr	* bootstrap: finally, new autoconf doesn't print silly "AC_TRY_RUN
6776119679Smbr	called without default to allow cross compiling" warnings.  And,
6777119679Smbr	it only took like 3+ years to fix this.  But, now it has anoter,
6778119679Smbr	albeit less annoying warning (which the manual says to ignore):
6779119679Smbr	"AC_PROG_LEX invoked multiple times".
6780119679Smbr	When autoheader is run, don't treat the "all clear" message
6781119679Smbr	"config.h.in is update" as an error.
6782119679Smbr
6783119679Smbr	* ltconfig: removed. not needed with latest version of libtool
6784119679Smbr
6785119679Smbr	* aux/macros/header_templates.m4: replaces acconfig.h and defines
6786119679Smbr	all CPP macros we use in this package, including their
6787119679Smbr	accompanying C /* comments */.
6788119679Smbr
6789119679Smbr	* acconfig.h: removed. replaced by new autoconf system to generate
6790119679Smbr	header templates using AH_TEMPLATE macros and such.
6791119679Smbr
6792119679Smbr	* aux/macros/msg.m4: removed.  Replaced with new macro
6793174294Sobrien	AC_MSG_NOTICE
6794119679Smbr
6795119679Smbr	* Makefile.am (EXTRA_DIST_AUX): remove aux/macros/msg.m4.  Add
6796119679Smbr	aux/macros/header_templates.m4
6797119679Smbr
6798119679Smbr	* configure.in: early, in host_macros.m4, I'm renaming silly linux
6799119679Smbr	$host_os names such as linux-gnu and lignux to plain "linux".
6800119679Smbr	Alas, RMS finally had his way and libtool will NOT recognize
6801119679Smbr	"linux" as a valid system, only "linux-gnu".  Sigh.  Rich, I know
6802119679Smbr	you're responsible to Linux's fame.  Kudos to you and your
6803119679Smbr	cohorts.  But please don't force the rest of us to use those ugly
6804119679Smbr	or long names.  Solution: temporarily name $host_os to "linux-gnu"
6805119679Smbr	before calling the AC_PROG_LIBTOOL macro, then name it back to
6806119679Smbr	"linux".  (That way I don't have to maintain my own version of
6807119679Smbr	ltmain.sh.
6808119679Smbr
6809119679Smbr	* buildall: force running configure -C (to create and use a local
6810119679Smbr	config.cache file).  New default behavior for autoconf is NOT to
6811119679Smbr	use cache files.  Yeah, that's gonna fly real well with am-utils,
6812119679Smbr	with its 700+ automatic tests.
6813119679Smbr
6814119679Smbr	* conf/mtab/mtab_mach3.c (rewrite_mtab): use mkstemp instead of
6815119679Smbr	mktemp, if the former is available.
6816119679Smbr
6817119679Smbr	* conf/mtab/mtab_file.c (rewrite_mtab): use mkstemp instead of
6818119679Smbr	mktemp, if the former is available.
6819119679Smbr
6820119679Smbr	* mk-amd-map/mk-amd-map.c (main): use mkstemp instead of mktemp,
6821119679Smbr	if the former is available.
6822119679Smbr
6823119679Smbr	* aux/macros/check_nfs_socket_connection.m4: AC_DEFINE calls must
6824119679Smbr	be on a separate line, as per new Autoconf manual, to avoid some
6825119679Smbr	Bourne Shell syntactical bizarreness.
6826119679Smbr
6827174294Sobrien2001-11-13  Erez Zadok  <ezk@a-rh71i.fsl.cs.suunysb.edu>
6828174294Sobrien
6829174294Sobrien	* amd/amfs_auto.c (amfs_auto_readdir_browsable): cast to u_long,
6830174294Sobrien	for IA64 Linux.
6831174294Sobrien
6832119679Smbr2001-11-12  Ion Badulescu  <ionut@buggy.badula.org>
6833119679Smbr
6834119679Smbr	* libamu/mtab.c (hasmntval): strtol can return a non-NULL pointer
6835119679Smbr	pointing to '\0' on success, so we need to allow for it. This
6836119679Smbr	fixes the problem with rejecting numerical mount options if they
6837119679Smbr	are the last option in the string.
6838119679Smbr
6839119679Smbr	* configure.in: increased library patchlevel
6840119679Smbr
6841174294Sobrien	* NEWS: document the parsing bug
6842119679Smbr
6843174294Sobrien2001-10-29  Ion Badulescu  <ionut@moisil.badula.org>
6844174294Sobrien
6845174294Sobrien	* configure.in: bumped version up to 6.1a5-pre
6846174294Sobrien
6847174294Sobrien	* NEWS: fixed speeling mistaike
6848174294Sobrien
6849174294Sobrien2001-10-29  Ion Badulescu  <ionut@moisil.badula.org>
6850174294Sobrien
6851174294Sobrien	* released snapshot am-utils-6.1a4
6852174294Sobrien
6853174294Sobrien2001-10-26  Ion Badulescu  <ionut@moisil.badula.org>
6854174294Sobrien
6855174294Sobrien	These changes fix autofs support for sublinks. While it is not
6856174294Sobrien	perfect by any means and is hardly better than non-autofs, at
6857174294Sobrien	least it works.
6858174294Sobrien
6859174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c (autofs_lookup_2_req): don't
6860174294Sobrien	reply if the mount is in progress
6861174294Sobrien	(autofs_mount_succeeded): handle both delayed lookups and mounts
6862174294Sobrien	(autofs_mount_failed): ditto
6863174294Sobrien
6864174294Sobrien	* amd/amfs_auto.c (amfs_auto_lookup_mntfs): don't dispose of the
6865174294Sobrien	original opt_fs if we have a sublink
6866174294Sobrien
6867174294Sobrien2001-10-23  Ion Badulescu  <ionut@moisil.badula.org>
6868174294Sobrien
6869174294Sobrien	* amd/amfs_auto.c (amfs_auto_lookup_mntfs): fixed silly typo (mf
6870174294Sobrien	instead of new_mf) which was causing null pointer error when
6871174294Sobrien	sublinks were being used
6872174294Sobrien
6873174294Sobrien2001-10-22  Ion Badulescu  <ionut@moisil.badula.org>
6874174294Sobrien
6875174294Sobrien	* README.autofs: updated
6876174294Sobrien
6877174294Sobrien	* NEWS: updated
6878174294Sobrien
6879174294Sobrien	* INSTALL: updated
6880174294Sobrien
6881174294Sobrien	* AUTHORS: added myself
6882174294Sobrien
6883174294Sobrien	* doc/am-utils.texi: updated
6884174294Sobrien
6885174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c (xdr_autofs_rddirargs): use
6886174294Sobrien	xdr_u_int() and cast things to (int) to appease Solaris 2.7 compile
6887174294Sobrien	(autofs_readdir_2_req): cast req->rda_offset to (int), same as
6888174294Sobrien	above
6889174294Sobrien
6890174294Sobrien2001-10-22  Ion Badulescu  <ionut@moisil.badula.org>
6891174294Sobrien
6892174294Sobrien	Autofs direct mounts have been verified to work on Solaris2.[67].
6893174294Sobrien
6894174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c (autofs_lookup_2_req):
6895174294Sobrien	retrieve the uid and gid from the lookup request
6896174294Sobrien	(autofs_mount_2_req): skip the first char in the name (it's a
6897174294Sobrien	leading '/') if this is a direct mount
6898174294Sobrien
6899174294Sobrien	* amd/amfs_direct.c (amfs_direct_ops): use amfs_auto_lookup_child
6900174294Sobrien	and amfs_auto_mount_child for amfs_direct's methods
6901174294Sobrien
6902174294Sobrien	* amd/amfs_auto.c (amfs_auto_lookup_child): don't leak an am_node
6903174294Sobrien	if the mntfs lookup fails
6904174294Sobrien
6905174294Sobrien2001-10-21  Ion Badulescu  <ionut@moisil.badula.org>
6906174294Sobrien
6907174294Sobrien	* include/am_utils.h (AMF_REMOUNT): new flag, marks the node as
6908174294Sobrien	pending a remount
6909174294Sobrien	(mntfs): new member mf_fsflags, holds a copy of the filesystem's
6910174294Sobrien	fs_flags
6911174294Sobrien	(am_ops): new member autofs_fs_flags, holds the filesystem's flags
6912174294Sobrien	when mounted onto an autofs node; fs_flags renamed to nfs_fs_flags
6913174294Sobrien
6914174294Sobrien	* conf/autofs/autofs_linux.c (create_autofs_service): turn on
6915174294Sobrien	FS_MKMNT for amfs_auto and FS_MBACKGROUND for amfs_link
6916174294Sobrien	(autofs_umount_succeeded): don't rmdir the mountpoint if a remount
6917174294Sobrien	is needed [lest the access that triggered the remount will fail]
6918174294Sobrien
6919174294Sobrien	* amd/mntfs.c (init_mntfs): copy the filesystem's nfs_fs_flags
6920174294Sobrien	into mf_fsflags on initialization
6921174294Sobrien
6922174294Sobrien	* amd/autil.c (am_unmounted): start the remounting right away if
6923174294Sobrien	the node is marked as needing a remount [fixes the Linux autofs
6924174294Sobrien	deadlock when mount/unmount collide]
6925174294Sobrien
6926174294Sobrien	* amd/amfs_auto.c (amfs_auto_lookup_node): mark the node as
6927174294Sobrien	needing a remount if a mount request comes in while we're
6928174294Sobrien	unmounting it
6929174294Sobrien	(amfs_auto_lookup_mntfs): copy the filesystem's autofs_fs_flags
6930174294Sobrien	into mf_fsflags if this is an autofs node
6931174294Sobrien
6932174294Sobrien	* amd/amfs_*.c, amd/ops_*.c: added initialization for the new
6933174294Sobrien	autofs_fs_flags member of am_ops
6934174294Sobrien
6935174294Sobrien2001-10-20  Ion Badulescu  <ionut@moisil.badula.org>
6936174294Sobrien
6937174294Sobrien	With these changes, Solaris 2.[67] autofs support is finally
6938174294Sobrien	functional!
6939174294Sobrien
6940174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c (autofs_readdir_2_req): stub
6941174294Sobrien	(autofs_readdir_2_free, xdr_autofs_rddirargs, xdr_autofs_putrddirres,
6942174294Sobrien	xdr_autofs_getrddirres, xdr_autofs_rddirres): new functions
6943174294Sobrien	(autofs_lookup_2_req): do an actual lookup here, and tell the
6944174294Sobrien	kernel to create a symlink if necessary
6945174294Sobrien	(autofs_mount_2_req): no need to am_autofs_data
6946174294Sobrien	(autofs_program_2): enable AUTOFS_READDIR
6947174294Sobrien	(autofs_link_mount): no code needed here
6948174294Sobrien	(autofs_link_umount): return success
6949174294Sobrien	(autofs_mount_succeeded): lstat real mount points; don't mark
6950174294Sobrien	symlinks as NOTIMEOUT
6951174294Sobrien
6952174294Sobrien	* amd/mntfs.c (init_mntfs): mf_dev and mf_rdev don't exist anymore
6953174294Sobrien
6954174294Sobrien	* amd/map.c (init_map): init am_dev and am_rdev to -1
6955174294Sobrien	(free_map): free am_mfarray and all mntfs's listed
6956174294Sobrien
6957174294Sobrien	* amd/autil.c (mf_mounted): move the lstat of the node to the
6958174294Sobrien	autofs-specific code
6959174294Sobrien
6960174294Sobrien	* amd/amfs_link.c (amfs_link_ops): don't background symlink creation
6961174294Sobrien
6962119679Smbr2001-10-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6963119679Smbr
6964174294Sobrien	* aux/macros/os_cflags.m4 (irix6*): Enforce N32 ABI/mips3 ISA with cc.
6965119679Smbr	* BUGS: Explain this.
6966119679Smbr
6967119679Smbr2001-10-02  Erez Zadok  <ezk@agora.fsl.cs.sunysb.edu>
6968119679Smbr
6969119679Smbr	* doc/am-utils.texi (redhat-ctl-amd): document new script.
6970119679Smbr
6971119679Smbr	* scripts/Makefile.am: build redhat-ctl-amd but do not install it.
6972119679Smbr
6973119679Smbr	* scripts/redhat-ctl-amd.in: new script, useful to correctly
6974119679Smbr	control Amd on Red Hat Linux systems.  Script adapted from ctl-amd
6975119679Smbr	and Red Hat's own rc.d script.
6976174294Sobrien
6977119679Smbr2001-10-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6978119679Smbr
6979119679Smbr	* conf/nfs_prot/nfs_prot_osf5.h: Renamed from nfs_prot_osf5_1.h.
6980119679Smbr	(MNT2_NFS_OPT_AUTO): Disable.
6981119679Smbr	* Makefile.am (EXTRA_DIST_CONF): Reflect new name.
6982119679Smbr	* aux/macros/check_nfs_prot_headers.m4: Use this file for all
6983119679Smbr	Tru64 UNIX V5 and up releases.
6984119679Smbr
6985119679Smbr2001-09-24  Ion Badulescu  <ionut@moisil.badula.org>
6986119679Smbr
6987119679Smbr	* include/mount_headers1.h (MFS): define as 1 instead of nothing,
6988119679Smbr	to fix compile problems on OS X (patch from Ahmon Dancy)
6989119679Smbr
6990119679Smbr	* aux/macros/try_compile_anyfs.m4 (MFS): ditto
6991119679Smbr
6992119679Smbr2001-08-13  Erez Zadok  <ezk@fsl-gw.fsl.cs.sunysb.edu>
6993119679Smbr
6994119679Smbr	* doc/am-utils.texi (in_network Selector Variable): document
6995119679Smbr	expanded syntax
6996119679Smbr
6997119679Smbr	* libamu/wire.c (is_network_member): support for network/netmask
6998119679Smbr	as well as network/bits syntax in in_network()
6999119679Smbr
7000174294Sobrien2001-08-11  Erez Zadok  <ezk@a-linux64.fsl.cs.sunysb.edu>
7001174294Sobrien
7002174294Sobrien	* amq/amq.c (show_mti): print full four digits for year, and print
7003174294Sobrien	it in MM/DD/YYYY format, not in YY/MM/DD format.
7004174294Sobrien
7005174294Sobrien2001-08-11  Ion Badulescu  <lionut@gonzales.badula.org>
7006174294Sobrien
7007174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c (autofs_lookup_2_req):
7008174294Sobrien	initial attempt to do something useful -- but commented out for now
7009174294Sobrien	(autofs_link_mount): create an action structure with a link
7010174294Sobrien	request and pass it up
7011174294Sobrien	(autofs_mount_2_req): pass the link request to the kernel
7012174294Sobrien	(autofs_free_data): new helper function
7013174294Sobrien
7014174294Sobrien	* conf/autofs/autofs_linux.h: added definition for autofs_data_t
7015174294Sobrien
7016174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.h: ditto
7017174294Sobrien
7018174294Sobrien	* amd/map.c (init_map): initialize am_autofs_data
7019174294Sobrien	(free_map): call the autofs cleanup function if necessary
7020174294Sobrien
7021174294Sobrien	* include/am_utils.h (am_node): added private data and cleanup
7022174294Sobrien	function for autofs
7023174294Sobrien
7024174294Sobrien	* tasks: removed some obsolete entries
7025174294Sobrien
7026174294Sobrien2001-08-11  Erez Zadok  <ezk@a-solaris8.fsl.cs.sunysb.edu>
7027174294Sobrien
7028174294Sobrien	* amd/map.c (free_map_if_success): run autofs_umount_failed() only
7029174294Sobrien	if this mount node is of type autofs.
7030174294Sobrien
7031174294Sobrien2001-08-11  Ion Badulescu  <lionut@gonzales.badula.org>
7032174294Sobrien
7033174294Sobrien	* amd/amd.h: removed mf_array from struct continuation (moved into
7034174294Sobrien	am_node)
7035174294Sobrien
7036174294Sobrien	* include/am_utils.h: removed VLOOK_LOOKUP; renamed vlookuppn to
7037174294Sobrien	vlookup_child; added vmount_child; added mount_child to the fs_ops
7038174294Sobrien	API; added prototypes for amfs_auto_mount_child and
7039174294Sobrien	amfs_error_mount_child
7040174294Sobrien
7041174294Sobrien	* amd/map.c (init_map): initialize am_mfarray to 0
7042174294Sobrien
7043174294Sobrien	* amd/amfs_*, amd/ops_*: new API function mount_child, old API
7044174294Sobrien	function lookuppn renamed to lookup_child
7045174294Sobrien
7046174294Sobrien	* amd/amfs_auto.c: renamed amfs_auto_lookuppn1 to
7047174294Sobrien	amfs_auto_lookup_node; renamed amfs_auto_lookuppn2 to
7048174294Sobrien	amfs_auto_lookup_mntfs; renamed amfs_auto_lookuppn3 to
7049174294Sobrien	amfs_auto_mount_child; moved the freeing of the error mntfs in the
7050174294Sobrien	newly allocated am_node from lookup_mntfs to mount_child; make
7051174294Sobrien	sure lookup_child returns a negative error if the node needs to be
7052174294Sobrien	mounted; removed the call to lookuppn3 from lookup_child
7053174294Sobrien
7054174294Sobrien	* amd/amfs_error.c: added stub implementations of
7055174294Sobrien	amfs_error_lookup_child and amfs_error_mount_child
7056174294Sobrien
7057174294Sobrien	* amd/amfs_direct.c, amd/amfs_union.c, amd/map.c, amd/nfs_subr.c,
7058174294Sobrien	conf/autofs/autofs_linux.c, conf/autofs/autofs_solaris_v2_v3.c:
7059174294Sobrien	call both lookup_child and mount_child, instead of the old
7060174294Sobrien	lookuppn API method
7061174294Sobrien
7062119679Smbr2001-07-19  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
7063119679Smbr
7064119679Smbr	* amd/get_args.c (get_args): a better way to handle GNU and
7065119679Smbr	non-GNU getopts without strdup-ing the getopt string.
7066119679Smbr
7067119679Smbr2001-07-04  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
7068119679Smbr
7069119679Smbr	* amd/info_ldap.c (amu_ldap_rebind): The first time you called
7070119679Smbr	amu_ldap_init, aldh->ldap is not set.  So when amu_ldap_rebind is
7071119679Smbr	called, this function is absolutely sure to return 0.  Then
7072119679Smbr	amu_ldap_init return 0 without having opened any LDAP connection.
7073174294Sobrien	This is not the correct behavior.
7074119679Smbr	(get_ldap_timestamp, amu_ldap_search): error to free an object
7075119679Smbr	("entry") that is automatically freed by the library.  Patch from
7076119679Smbr	Sebastien Bahloul <sebastien.bahloul@mangoosta.fr>.
7077119679Smbr
7078119679Smbr2001-07-19  Ion Badulescu  <ionut@moisil.badula.org>
7079119679Smbr
7080119679Smbr	* AUTHORS (variables): added Philippe Troin
7081119679Smbr
7082119679Smbr	* Makefile.am (EXTRA_DIST): added bootstrap
7083119679Smbr
7084119679Smbr	* include/am_compat.h (xfs_args_t): define as u_int if the
7085119679Smbr	filesystem is supported but we can't autodetect the type for
7086119679Smbr	xfs_args_t. This allows Linux to mount xfs filesystems.
7087119679Smbr
7088119679Smbr2001-07-12  Philippe Troin  <phil@fifi.org>
7089119679Smbr
7090174294Sobrien	* doc/am-utils.texi: Added @dircategory Administration.
7091174294Sobrien
7092174294Sobrien2001-07-12  Philippe Troin  <phil@fifi.org>
7093174294Sobrien
7094119679Smbr	* aux/macros/with_addon.m4: Created. Wrapper around AC_ARG_WITH
7095119679Smbr	with only the `yes' and `no' as possible answers.
7096119679Smbr
7097119679Smbr	* configure.in: Added support for disabling LDAP and HESIOD even
7098119679Smbr	if the supporting libraries are found.
7099119679Smbr
7100119679Smbr	* Makefile.am (EXTRA_DIST_AUX): Added with_addon.m4 macro file.
7101119679Smbr
7102119679Smbr2001-07-12  Philippe Troin  <phil@fifi.org>
7103119679Smbr
7104119679Smbr	* include/am_compat.h: Removed forced definition of MNTTAB_OPT_DEV
7105119679Smbr	if MNT2_GEN_OPT_NODEV was found. Actually, the dev= (SVR4) options
7106119679Smbr	and the linux nodev options are different beasts.
7107119679Smbr
7108119679Smbr	* conf/mount/mount_linux.c (opt_map): Removed the MNTTAB_OPT_DEV
7109119679Smbr	entry (not really necessary on linux).
7110119679Smbr
7111119679Smbr2001-07-12  Philippe Troin  <phil@fifi.org>
7112119679Smbr
7113119679Smbr	* amd/get_args.c (get_args): Prepend "+" to the getopt string if
7114119679Smbr	HAVE_GNU_GETOPT to avoid getting all options (even the ones after
7115119679Smbr	the first non-option argument) slurped in by GNU getopt.
7116119679Smbr
7117119679Smbr	* aux/macros/check_gnu_getopt.m4: Created. Defines HAVE_GNU_GETOPT
7118119679Smbr	if GNU/glibc getopt implementation is detected.
7119119679Smbr
7120119679Smbr	* configure.in: Added call to AC_CHECK_GNU_GETOPT.
7121119679Smbr
7122119679Smbr	* acconfig.h: Document HAVE_GNU_GETOPT.
7123119679Smbr
7124119679Smbr	* Makefile.am (EXTRA_DIST_AUX): Added check_gnu_getopt.m4 macro file.
7125119679Smbr
712682794Sobrien2001-06-25  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
712782794Sobrien
712882794Sobrien	* LSM.am-utils, NEWS, README.y2k, ChangeLog: make sure all
712982794Sobrien	am-utils URL references use www.am-utils.org, not the columbia
713082794Sobrien	URL.
713182794Sobrien
7132174294Sobrien2001-06-08  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
713382794Sobrien
7134174294Sobrien	* conf/transp/transp_sockets.c (create_nfs_service): cast to
7135174294Sobrien	u_long to ensure clean compile on freebsd5 and bsdi2.
713682794Sobrien
7137174294Sobrien2001-05-23  Ion Badulescu  <ionut@moisil.badula.org>
7138174294Sobrien
7139174294Sobrien	WARNING: WORK IN PROGRESS
7140174294Sobrien
7141174294Sobrien	It works for me on Linux (both autofs and nfs mounts), for nfs and
7142174294Sobrien	link, but I won't make any guarantees outside those.
7143174294Sobrien
7144174294Sobrien	* amd/mntfs.c (find_mntfs): reuse the mntfs only if both the mount
7145174294Sobrien	point and the device/fileserver are the same. This is an important
7146174294Sobrien	change of philosophy, watch out for memory leaks!
7147174294Sobrien
7148174294Sobrien	* amd/map.c (get_ap_child): helper function for
7149174294Sobrien	amfs_auto_lookuppn, creates a new am_node for key fname, inits it,
7150174294Sobrien	and inserts it into all necessary structures
7151174294Sobrien
7152174294Sobrien	* amd/amfs_auto.c (free_continuation): free unused mntfs's; don't
7153174294Sobrien	free any of the removed fields
7154174294Sobrien	(amfs_auto_lookuppn, amfs_auto_bgmount): split lookuppn into three
7155174294Sobrien	subfunctions, including some code stolen from bgmount; lookuppn
7156174294Sobrien	now generates an array of possible mntfs to try mounting, and
7157174294Sobrien	bgmount will actually try to mount each of them.
7158174294Sobrien	(amfs_auto_lookuppn[123]): the three new subfunctions for lookuppn
7159174294Sobrien	(amfs_parse_defaults): new helper function for lookuppn
7160174294Sobrien
716182794Sobrien2001-05-19  Erez Zadok  <ezk@kosh.dyn.optonline.net>
716282794Sobrien
716382794Sobrien	* conf/mount/mount_linux.c: typo: added comma after '0' element.
716482794Sobrien
716582794Sobrien2001-05-19  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
716682794Sobrien
7167174294Sobrien	* conf/autofs/autofs_linux.c (AUTOFS_MAX_VERSION): allow using
7168174294Sobrien	autofs-v4 again
7169174294Sobrien	(autofs_get_opts): don't pass pgrp, the kernel will get it
7170174294Sobrien	automatically anyway, not to mention that we were passing bogus
7171174294Sobrien	data if amd was not daemonized.
7172174294Sobrien
717382794Sobrien	* conf/mount/mount_linux.c (linux_nfs_error): don't special case
717482794Sobrien	the 0 result, just put it into the translation list
717582794Sobrien
717682794Sobrien2001-05-19  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
717782794Sobrien
717882794Sobrien	* conf/mount/mount_linux.c (linux_nfs_error): don't report success
717982794Sobrien	(0) as error (NE_IO)!
718082794Sobrien
718182794Sobrien2001-05-18  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
718282794Sobrien
718382794Sobrien	* amd/amfs_host.c (amfs_host_mount): don't fail the mount if at
718482794Sobrien	least one share is already mounted
718582794Sobrien
7186174294Sobrien2001-05-17  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
718782794Sobrien
7188174294Sobrien	* libamu/util.c (str3cat): updated comment
718982794Sobrien
7190174294Sobrien	* include/am_utils.h: added VLOOK_LOOKUP and FS_DIRECT
7191174294Sobrien
7192174294Sobrien	* conf/autofs/autofs_linux.c (autofs_get_fh): removed obsolete comment
7193174294Sobrien	(autofs_mounted): disable autofs support for host f/s if version < 4
7194174294Sobrien	(create_autofs_service): turn on FS_MKMNT on auto f/s if using autofs
7195174294Sobrien	(autofs_umount_succeeded): use rmdirs instead of rmdir
7196174294Sobrien	(autofs_mount_failed): ditto
7197174294Sobrien
7198174294Sobrien	* amd/opts.c (expand_op): align the debugging messages
7199174294Sobrien
7200174294Sobrien	* amd/map.c (mount_auto_node): use am_node *mp instead of casting
7201174294Sobrien	the void *arg; update the comment
7202174294Sobrien
7203174294Sobrien	* amd/autil.c (am_mounted): check the FS_DIRECT flag instead of
7204174294Sobrien	comparing to &amfs_direct_ops
7205174294Sobrien	(mount_node): ifs_mount doesn't exist, make note of it in the
7206174294Sobrien	comment
7207174294Sobrien
7208174294Sobrien	* amd/amfs_direct.c (amfs_direct_ops): added FS_DIRECT to fs_flags
7209174294Sobrien
7210174294Sobrien	* amd/amfs_auto.c (amfs_auto_mount): removed the autofs hack to
7211174294Sobrien	create the mountpoint directory for auto f/s; it is now handled in
7212174294Sobrien	autofs_linux.c
7213174294Sobrien	(amfs_auto_bgmount): renamed the mpe parameter to mp_error;
7214174294Sobrien	renamed dont_retry to retry and reverted its meaning as well;
7215174294Sobrien	moved the mp variable up one scope and made use of it throughout
7216174294Sobrien	the function;
7217174294Sobrien	(amfs_auto_readdir): whitespace
7218174294Sobrien	(amfs_auto_readdir_browsable): whitespace, also some debugging
7219174294Sobrien
7220174294Sobrien	* amd/am_ops.c (vops): updated a comment
7221174294Sobrien
7222174294Sobrien	* .cvsignore: added A.i386-pc-linux-rh7.[01]
7223174294Sobrien
722482794Sobrien2001-05-01  Ion Badulescu  <ionut@gonzales.dev.hydraweb.com>
722582794Sobrien
722682794Sobrien	* conf/mount/mount_linux.c: fixed stupid error in the linux
722782794Sobrien	nfs_errormap[], which was mapping ENOENT to success!!!
722882794Sobrien
722982794Sobrien2001-04-28  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
723082794Sobrien
723182794Sobrien	* BUGS: added info about the direct mount problems on Linux and
723282794Sobrien	about the kernel patches on www.am-utils.org.
723382794Sobrien
7234174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c (autofs_unmount_2_req):
7235174294Sobrien	removed obsolete comment
7236174294Sobrien
723782794Sobrien	* amd/autil.c (forcibly_timeout_mp): always log a message when the
723882794Sobrien	forced unmount request is ignored
7239174294Sobrien	(mf_mounted): don't lstat unless this is an autofs mount point,
7240174294Sobrien	lest we deadlock
724182794Sobrien
7242174294Sobrien	* amd/amfs_auto.c (amfs_auto_bgmount): don't gratuitously add
7243174294Sobrien	MFF_MKMNT to the flags, it causes deadlocks later on when
7244174294Sobrien	unmounting
724582794Sobrien
724682794Sobrien2001-04-14  Erez Zadok  <ezk@whitestar.dyn.optonline.net>
724782794Sobrien
724882794Sobrien	* COPYING: update copyright year
724982794Sobrien
725082794Sobrien	* amd/amfs_auto.c, amd/amfs_host.c, amd/amfs_nfsx.c,
725182794Sobrien	amd/amfs_toplvl.c, amd/amfs_union.c, amd/conf.c, amd/info_nis.c,
725282794Sobrien	amd/info_nisplus.c, amd/mapc.c, amd/nfs_subr.c, amd/ops_nfs.c,
725382794Sobrien	amd/rpc_fwd.c, amd/srvr_amfs_auto.c, amd/srvr_nfs.c,
725482794Sobrien	conf/autofs/autofs_solaris_v1.c, conf/mtab/mtab_file.c,
725582794Sobrien	conf/mtab/mtab_isc3.c, conf/mtab/mtab_svr4.c,
725682794Sobrien	conf/transp/transp_sockets.c, conf/transp/transp_tli.c,
725782794Sobrien	libamu/mount_fs.c, libamu/mtab.c: rewritten various dlog/plog
725882794Sobrien	messages for clarity, to avoid duplication, to better recognize
725982794Sobrien	what the message means and where it ran, and to fix typos.
726082794Sobrien
726182794Sobrien	* amd/nfs_subr.c (nfsproc_lookup_2_svc): moved trace message of
726282794Sobrien	function's name to the beginning of the function, before any other
726382794Sobrien	messages are logged.
726482794Sobrien
7265174294Sobrien2001-04-14  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
7266174294Sobrien
7267174294Sobrien	* conf/mount/mount_linux.c (do_mount_linux): removed plog() of
7268174294Sobrien	binary data
7269174294Sobrien
727082794Sobrien2001-04-05  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
727182794Sobrien
727282794Sobrien	* include/am_defs.h: define NFSCLIENT, NFS, PCFS, LOFS, RFS,
727382794Sobrien	MSDOSFS, MFS and CD9660 to 1, so that both #if FOO and #ifdef FOO
727482794Sobrien	work (needed for MacOS X); removed duplicate definition of NFS.
727582794Sobrien
727682794Sobrien2001-03-29  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
727782794Sobrien
727882794Sobrien	* amd/amd.h, amd/amfs_auto.c, amd/conf.c,
727982794Sobrien	doc/am-utils.texi,
728082794Sobrien	scripts/amd.conf-sample, scripts/amd.conf.5:
728182794Sobrien	renamed selectors_on_default to selectors_in_defaults,
728282794Sobrien	kept the former as a deprecated option;
728382794Sobrien	renamed CFM_ENABLE_DEFAULT_SELECTORS to CFM_SELECTORS_IN_DEFAULTS;
728482794Sobrien	renamed gopt_selectors_on_default() to gopt_selectors_in_defaults()
728582794Sobrien
7286174294Sobrien2001-03-19  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
7287174294Sobrien
7288174294Sobrien	* amd/amfs_toplvl.c, amd/amfs_auto.c, amd/srvr_nfs.c,
7289174294Sobrien	include/am_utils.h: compile fixes for --enable-debug=no
7290174294Sobrien
729182794Sobrien2001-03-15  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
729282794Sobrien
7293174294Sobrien	* NEWS: updated
7294174294Sobrien
7295174294Sobrien	* README.autofs: updated
7296174294Sobrien
7297174294Sobrien	* conf/mount/mount_linux.c (linux_version_code): export the fn
7298174294Sobrien
7299174294Sobrien	* conf/nfs_prot/nfs_prot_linux.h: ditto
7300174294Sobrien
7301174294Sobrien	* conf/autofs/autofs_linux.c (create_autofs_service): verify the
7302174294Sobrien	kernel version here, and turn off bind_works if the kernel is
7303174294Sobrien	older than 2.4.0.
7304174294Sobrien	(autofs_link_mount): don't touch bind_works here, it's useless
7305174294Sobrien	b/c we're in a child process; remove the mountpoint directory if
7306174294Sobrien	the bind mount fails
7307174294Sobrien
7308174294Sobrien	* amd/opts.c (eval_fs_opts): changed some annoying debugging plogs
7309174294Sobrien	into dlogs
7310174294Sobrien
7311174294Sobrien	* conf/autofs/autofs_linux.c (autofs_link_mount): zero out the
7312174294Sobrien	mntent struct before initializing it
7313174294Sobrien
7314174294Sobrien2001-03-14  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
7315174294Sobrien
731682794Sobrien	* conf/mount/mount_linux.c (parse_opts): added support for lofs
731782794Sobrien	(mount_linux): support lofs through bind mounts and/or FiST lofs
731882794Sobrien
731982794Sobrien	* scripts/ctl-hlfsd.in: search for /var/spool/mail in addition to
732082794Sobrien	/var/mail and /usr/spool/mail
732182794Sobrien
732282794Sobrien	* conf/nfs_prot/nfs_prot_linux.h (MS_BIND): add define for it, if
732382794Sobrien	kernel is newer than 2.4.0
732482794Sobrien	(MNTTYPE_LOFS): ditto
732582794Sobrien
7326174294Sobrien	* conf/autofs/autofs_solaris_v2_v3.c (autofs_link_umount): new stub
7327174294Sobrien	(autofs_lookup_failed): removed stub
732882794Sobrien
7329174294Sobrien	* conf/autofs/autofs_linux.c (autofs_lookup_failed): moved up in
7330174294Sobrien	the file, made static;
7331174294Sobrien	(autofs_link_mount): activate MNT2_GEN_OPT_BIND code; use stat()
7332174294Sobrien	and friends to determine if bind mounts can be used and to trigger
7333174294Sobrien	further cascading mounts; return proper error codes
7334174294Sobrien	(autofs_link_umount): distinguish between symlinks and bind mounts
7335174294Sobrien	and handle both correctly
7336174294Sobrien	(autofs_umount_succeeded): remove call to autofs_link_umount()
733782794Sobrien
7338174294Sobrien	* amd/map.c (umount_exported): try to unmount all mount points on
7339174294Sobrien	an autofs filesystem; this isn't really needed and will be removed
7340174294Sobrien	when we start handling restarting autofs mounts
7341174294Sobrien
7342174294Sobrien	* amd/amfs_link.c (amfs_link_[u]mount): call autofs_link_[u]mount,
7343174294Sobrien	if necessary
7344174294Sobrien
7345174294Sobrien	* amd/amfs_auto.c (amfs_auto_bgmount): fixed a bug that was
7346174294Sobrien	causing the wrong mntfs to be selected when using autofs; removed
7347174294Sobrien	call to autofs_link_mount() (moved where it belongs, in
7348174294Sobrien	amfs_link.c)
7349174294Sobrien
7350174294Sobrien	* amd/amfs_link.c: added FS_MBACKGROUND to fs flags -- cleaner
7351174294Sobrien	solution is needed, because background mounting is only necessary
7352174294Sobrien	for linux autofs + bind mounts
7353174294Sobrien
7354174294Sobrien	* amd/amd.h: removed prototype for autofs_lookup_failed (internal
7355174294Sobrien	static function for linux autofs); added prototype for
7356174294Sobrien	autofs_link_umount
7357174294Sobrien
7358174294Sobrien	* configure.in: bump up library patchlevel
7359174294Sobrien
736082794Sobrien2001-02-28  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
736182794Sobrien
736282794Sobrien	* aux/macros/check_mount_trap.m4,
736382794Sobrien	aux/macros/check_nfs_fh_dref.m4,
736482794Sobrien	aux/macros/check_nfs_prot_headers.m4,
736582794Sobrien	aux/macros/type_recvfrom_fromlen.m4,
736682794Sobrien	aux/macros/type_yp_order_outorder.m4:
736782794Sobrien	Fixed newer freebsd's fh type, expanded more aix3, osf2, hpux9 to
736882794Sobrien	aix[1-3], osf[1-3] and hpux[6-9].
736982794Sobrien
737082794Sobrien2001-02-28  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
737182794Sobrien
737282794Sobrien	* check_mount_style.m4, check_mount_trap.m4,
737382794Sobrien	check_network_transport_type.m4, check_nfs_fh_dref.m4,
737482794Sobrien	check_nfs_prot_headers.m4, check_nfs_sa_dref.m4,
737582794Sobrien	check_nfs_socket_connection.m4, os_cflags.m4,
737682794Sobrien	type_yp_order_outorder.m4: small fixes to Ion's cleanup, and more
737782794Sobrien	cleanup (use [[0-1]] instead of M4 changequote commands).
737882794Sobrien
737982794Sobrien	* Makefile.am: removed unused conf/trap/trap_hpux11.h
738082794Sobrien
738182794Sobrien2001-02-27  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
738282794Sobrien
738382794Sobrien	* aux/macros/check_network_transport_type.m4,
738482794Sobrien	aux/macros/check_mount_style.m4,
738582794Sobrien	aux/macros/check_mount_trap.m4,
738682794Sobrien	aux/macros/check_network_transport_type.m4,
738782794Sobrien	aux/macros/check_nfs_fh_dref.m4,
738882794Sobrien	aux/macros/check_nfs_prot_headers.m4,
738982794Sobrien	aux/macros/check_nfs_sa_dref.m4,
739082794Sobrien	aux/macros/check_nfs_socket_connection.m4,
739182794Sobrien	aux/macros/os_cflags.m4,
739282794Sobrien	aux/macros/type_auth_create_gidlist.m4,
739382794Sobrien	aux/macros/type_recvfrom_fromlen.m4,
739482794Sobrien	aux/macros/type_yp_order_outorder.m4:
739582794Sobrien	Reworked the scripts, so that a new _unknown_ version of a known OS
739682794Sobrien	will use the option for the newest _known_ version of that OS. For
739782794Sobrien	example, when freebsd6 comes out, it will use the stuff for
739882794Sobrien	freebsd5, not the stuff for freebsd2. This makes configure more
739982794Sobrien	likely to succeed on new systems/versions.
740082794Sobrien
7401174294Sobrien	* Makefile.am (EXTRA_DIST_AUX): added check_autofs_style.m4 (grr)
7402174294Sobrien
7403174294Sobrien2001-02-24  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
7404174294Sobrien
7405174294Sobrien	* Makefile.am (install-snapshot): use a different symlink target
7406174294Sobrien	for the experimental snapshots.
7407174294Sobrien
740882794Sobrien2001-02-23  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
740982794Sobrien
741082794Sobrien	* Makefile.am (EXTRA_DIST_CONF): include nfs_prot_darwin.h in
741182794Sobrien	distributions.
741282794Sobrien
7413174294Sobrien2001-02-22  Erez Zadok  <ezk@earth.cs.columbia.edu>
7414174294Sobrien
7415174294Sobrien	* released snapshot am-utils-6.1a3
7416174294Sobrien
7417174294Sobrien	* amd/Makefile.am (EXTRA_amd_SOURCES): don't forget to distribute
7418174294Sobrien	get_args.c
7419174294Sobrien
742082794Sobrien2001-02-21  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
742182794Sobrien
742282794Sobrien	* libamu/mtab.c: added the functions hasmnteq and haseq to
742382794Sobrien	ease checks for non-numeric values in opt=value strings.
742482794Sobrien	Recoded hasmntval to qualify input as numeric, allow hex and
742582794Sobrien	octal strings on rhs of =, and log when the value is missing
742682794Sobrien	or invalid.
742782794Sobrien
742882794Sobrien	* conf/mount/mount_linux.c: revised mount_linux to use new
742982794Sobrien	hasmnteq function to extract type of non-nfs mounts, and added
743082794Sobrien	a log message to catch possible failure of strdup.
743182794Sobrien
743282794Sobrien	* amd/am_ops.c: revised merge_ops to use new haseq function
743382794Sobrien
743482794Sobrien	* amd/srvr_nfs.c: revised find_nfs_srvr to use hasmnteq to
743582794Sobrien	discover protocol setting.
743682794Sobrien
743782794Sobrien	* include/am_utils.h: added function prototypes for hasmnteq
743882794Sobrien	and haseq
743982794Sobrien
744082794Sobrien2001-02-19  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
744182794Sobrien
744282794Sobrien	* include/mount_headers2.h (_LINUX_NFS3_H): define it, to avoid
744382794Sobrien	pulling in unwanted declarations from 2.2.19pre and 2.4.1ac
744482794Sobrien
744582794Sobrien	* include/am_defs.h (_LINUX_NFS3_H): ditto
744682794Sobrien
744782794Sobrien	* conf/nfs_prot/nfs_prot_linux.h: whitespace, comments
744882794Sobrien
744982794Sobrien2001-02-19  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
745082794Sobrien
745182794Sobrien	* aux/macros/check_fs_mntent.m4 (ac_safe): remove debugging "echo"
745282794Sobrien	command.
745382794Sobrien
745482794Sobrien2001-02-18  Erez Zadok  <ezk@earth.cs.columbia.edu>
745582794Sobrien
745682794Sobrien	* aux/macros/mount_headers.m4, include/mount_headers[12].h: split
745782794Sobrien	mount_headers.h in two because one relative header (nfs_prot.h)
745882794Sobrien	file cannot be included inside another from the start directory of
745982794Sobrien	the first (it's relative to the directory of the first).
746082794Sobrien
746182794Sobrien2001-02-09  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
746282794Sobrien
746382794Sobrien	* AUTHORS: added Ahmon Dancy <dancy@franz.com>
746482794Sobrien
746582794Sobrien	* (all): added Darwin/Rhapsody/Apple OS X support from Ahmon Dancy
746682794Sobrien
746782794Sobrien	* aux/macros/mount_headers.m4: moved all the C code into a
746882794Sobrien	separate file, include/mount_headers.h; the effect is that
746982794Sobrien	configure goes down in size by a factor of 2.5!
747082794Sobrien
747182794Sobrien	* include/mount_headers.h: new file, with C code from
747282794Sobrien	aux/macros/mount_headers.m4
747382794Sobrien
747482794Sobrien2001-02-01  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
747582794Sobrien
747682794Sobrien	* conf/mount/mount_linux.c: made linux_nfs_error() more robust.
747782794Sobrien
7478174294Sobrien2001-02-01  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
747982794Sobrien
7480174294Sobrien	* released snapshot am-utils-6.1a2
748182794Sobrien
7482174294Sobrien	* updated ltmain.sh and ltconfig from latest stable version of
7483174294Sobrien	libtool-1.3.5
7484174294Sobrien
748582794Sobrien2001-02-01  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
748682794Sobrien
748782794Sobrien	* conf/nfs_prot/nfs_prot_linux.h (nfs_error): moved the definition
748882794Sobrien	of nfs_error here, from mount_linux.c, so that it can actually be
748982794Sobrien	used.
749082794Sobrien
749182794Sobrien	* conf/mount/mount_linux.c: added unused errno 41 to the
749282794Sobrien	nfs_errormap array, lest the following errno's get shifted up by
749382794Sobrien	one!
749482794Sobrien
749582794SobrienSat Jan 13 00:04:38 2001  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
749682794Sobrien
749782794Sobrien	* amd/amd.h (autofs_lookuppn): Fixup whitespace.
749882794Sobrien	* amd/amfs_auto.c (amfs_auto_bgmount): Likewise.
749982794Sobrien	* amd/amfs_error.c: (amfs_error_match): Likewise.
750082794Sobrien	* amd/amfs_host.c (fetch_fhandle): Fixup whitespace.  Remove
750182794Sobrien	unnecessary temporary variable.
750282794Sobrien	* amd/info_file.c (read_line): Likewise.
750382794Sobrien	(search_or_reload_file): Likewise.
750482794Sobrien	* amd/info_ldap.c (get_ldap_timestamp): Likewise.
7505174294Sobrien	* amd/map.c (get_root_ap): Likewise.
750682794Sobrien	* amd/nfs_prot_svc.c: Likewise.
750782794Sobrien	* amd/ops_TEMPLATE.c (foofs_match, foofs_lookuppn,
7508174294Sobrien	foofs_readlink, foofs_ffserver): Likewise.
750982794Sobrien	* amd/ops_autofs.c (autofs_bgmount): Likewise.
751082794Sobrien	* amd/ops_lofs.c (lofs_match): Likewise.
751182794Sobrien	* amd/ops_nfs.c (got_nfs_fh): Fixup whitespace.
751282794Sobrien	* amd/ops_xfs.c (xfs_match): Likewise.
751382794Sobrien	* amd/srvr_amfs_auto.c (srvrlog): Line break.
751482794Sobrien	* amd/srvr_nfs.c (got_portmap, call_portmap, nfs_pinged,
751582794Sobrien	nfs_srvr_port): Fixup whitespace.
751682794Sobrien	* conf/nfs_prot/nfs_prot_bsdi2.h: Likewise.
751782794Sobrien	* conf/nfs_prot/nfs_prot_hpux.h: Likewise.
751882794Sobrien	* conf/nfs_prot/nfs_prot_hpux11.h: Likewise.
751982794Sobrien	* conf/nfs_prot/nfs_prot_irix5.h: Likewise.
752082794Sobrien	* conf/nfs_prot/nfs_prot_irix6.h: Likewise.
752182794Sobrien	* conf/nfs_prot/nfs_prot_nextstep.h: Likewise.
752282794Sobrien	* conf/nfs_prot/nfs_prot_osf2.h: Likewise.
752382794Sobrien	* conf/nfs_prot/nfs_prot_osf4.h: Likewise.
752482794Sobrien	* conf/nfs_prot/nfs_prot_osf5_1.h: Likewise.
752582794Sobrien	* conf/nfs_prot/nfs_prot_sunos3.h: Likewise.
752682794Sobrien	* conf/nfs_prot/nfs_prot_sunos4.h: Likewise.
752782794Sobrien	* conf/nfs_prot/nfs_prot_ultrix.h: Likewise.
752882794Sobrien	* conf/transp/transp_tli.c (get_mount_client): Likewise.
752982794Sobrien	* hlfsd/nfs_prot_svc.c: Likewise.
753082794Sobrien	* include/am_defs.h (sys_errlist): Likewise.
753182794Sobrien	* include/am_utils.h (am_get_progname, am_get_hostname,
753282794Sobrien	amq_program_1): Likewise.
753382794Sobrien	(nfsxprt): Moved declaration.
753482794Sobrien
753582794SobrienFri Jan 12 23:31:45 2001  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
753682794Sobrien
753782794Sobrien	Removed support for amq -M.
753882794Sobrien
753982794Sobrien	* acconfig.h (ENABLE_AMQ_MOUNT): Removed.
754082794Sobrien	* aux/macros/opt_amq_mount.m4: Removed.
754182794Sobrien	* Makefile.am (EXTRA_DIST_AUX): Don't distribute
754282794Sobrien	opt_amq_mount.m4.
754382794Sobrien	* configure.in (AC_OPT_AMQ_MOUNT): Removed invocation.
754482794Sobrien
754582794Sobrien	* amd/amq_subr.c (ok_security, amqproc_mount_1_svc): Removed.
754682794Sobrien	* amd/amq_svc.c (amq_program_1): Removed amq -M support.
754782794Sobrien	* amq/amq.c (mount_map): Removed.
754882794Sobrien	(main): Removed -M option handling.
754982794Sobrien	Removed transport-type specific CLIENT creation.
755082794Sobrien	(get_secure_amd_client, amq_bind_resv_port, privsock): Removed.
755182794Sobrien
755282794Sobrien	* amq/amq.8: Removed -M documentation.
755382794Sobrien	* doc/am-utils.texi (Top-level Filesystem): Removed amq -M
755482794Sobrien	reference, but retain comment on mount -t amd.
755582794Sobrien	(Controlling Amd): Likewise.
755682794Sobrien
755782794Sobrien	* tasks: Removed this task.
755882794Sobrien
7559174294SobrienFri Jan 12 23:18:26 2001  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7560174294Sobrien
7561174294Sobrien	* conf/autofs/autofs_*.c: Bump copyright year to 2001.
7562174294Sobrien	* hlfsd/hlfsd.h (HLFSD_VERSION): Likewise.
7563174294Sobrien
7564174294Sobrien	* aux/macros/check_autofs_style.m4: Renamed solaris[12] styles to
7565174294Sobrien	solaris_v1, solaris_v2_v3 to reflect that these are AutoFS
7566174294Sobrien	protocol version numbers, not solaris versions.
7567174294Sobrien	* conf/autofs/autofs_solaris[12].[ch]: Renamed to
7568174294Sobrien	autofs_solaris_{v1, 2_v3}.[ch] to reflect this.
7569174294Sobrien	* Makefile.am (EXTRA_DIST_CONF): Likewise.
7570174294Sobrien
7571174294Sobrien	* aux/macros/check_autofs_style.m4: Use solaris2 style for both
7572174294Sobrien	versions 2 and 3 of the AutoFS protocol.
7573174294Sobrien
7574174294Sobrien	Handle missing AUTOFS_POSTUNMOUNT, AUTOFS_POSTMOUNT (unnecessary
7575174294Sobrien	with Solaris 8 mntfs).
7576174294Sobrien
7577174294Sobrien	* conf/autofs/autofs_solaris2.c (xdr_postumntreq, xdr_postumntres,
7578174294Sobrien	xdr_postmountreq, xdr_postmountres, autofs_postunmount_2_req,
7579174294Sobrien	autofs_postmount_2_req ): Don't define for version 3.
7580174294Sobrien	(autofs_program_2): Don't handle AUTOFS_POSTUNMOUNT,
7581174294Sobrien	AUTOFS_POSTMOUNT if missing.
7582174294Sobrien
7583174294Sobrien	* conf/nfs_prot/nfs_prot_sunos5_8.h: Enable AutoFS support.
7584174294Sobrien
7585174294Sobrien	* aux/macros/check_autofs_style.m4: Use empty autofs_default.[ch]
7586174294Sobrien	files on systems without existing autofs port.
7587174294Sobrien	* conf/autofs/autofs_default.[ch]: New files, empty.
7588174294Sobrien	* Makefile.am (EXTRA_DIST_CONF): Distribute them.
7589174294Sobrien	* INSTALL: With this change, Solaris 8 and Tru64 5.1 compile and
7590174294Sobrien	link.
7591174294Sobrien
759282794Sobrien2001-01-12  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
759382794Sobrien
759482794Sobrien	* Makefile.am (EXTRA_DIST): distribute new LDAP files.
759582794Sobrien
759682794Sobrien	* README.ldap, ldap-id.txt, ldap-id.ms: LDAP status information,
759782794Sobrien	proposed Schema, and internet draft.
759882794Sobrien
759982794SobrienFri Jan 12 22:27:07 2001  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
760082794Sobrien
760182794Sobrien	* Support Tru64 UNIX V5.1:
760282794Sobrien
760382794Sobrien	* conf/nfs_prot/nfs_prot_osf5_1.h: New file.
760482794Sobrien
760582794Sobrien	* Makefile.am (EXTRA_DIST_CONF): Distribute it.
760682794Sobrien
760782794Sobrien	* aux/macros/check_nfs_prot_headers.m4: Tru64 UNIX V5.1 has
760882794Sobrien	AutoFS, need to disable it until a port exists.
760982794Sobrien
761082794Sobrien	* INSTALL, doc/am-utils.texi (Supported Platforms): Mention new
761182794Sobrien	minor port.
761282794Sobrien
761382794Sobrien2001-01-09  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
761482794Sobrien
761582794Sobrien	* ALL: bump copyright year to 2001.
761682794Sobrien
761782794Sobrien2001-01-05  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
761882794Sobrien
761982794Sobrien	* acconfig.h: correct comments for NODEV/NONDEV mount options
762082794Sobrien
762182794SobrienFri Jan  5 05:12:02 2001  Erez Zadok  <ezk@subzero.cs.columbia.edu>
762282794Sobrien
762382794Sobrien	* libamu/xdr_func.c: removed ugly casts to "groups*", now that
762482794Sobrien	irix6's nfs_prot.h is fixed.
762582794Sobrien
762682794Sobrien	* conf/nfs_prot/nfs_prot_irix6.h: copied relevant parts of
762782794Sobrien	<rpcsvc/mount.h> here so we don't have to include this header.
762882794Sobrien
762982794Sobrien2001-01-04  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
763082794Sobrien
763182794Sobrien	* conf/nfs_prot/nfs_prot_irix6.h: redefine "groups" typedef to
763282794Sobrien	struct groups, not the pointer to this struct.
763382794Sobrien
763482794Sobrien	* include/am_xdr_func.h: prototype should take "groups *" as 2nd
763582794Sobrien	arg.
763682794Sobrien
7637174294Sobrien	* libamu/xdr_func.c (xdr_groupnode, xdr_exportnode): change
763882794Sobrien	casting of second arg of xdr_groups to "groups *".  It's only
763982794Sobrien	needed for irix6, due to problems with xdr_groups on that platform.
764082794Sobrien	(xdr_groups): prototype should take "groups *" as 2nd arg.
764182794Sobrien
764282794Sobrien	* conf/nfs_prot/nfs_prot_aix*.h: correct xdr_groups extern
7643174294Sobrien	definition.  Report from Ahmon Dancy <dancy@franz.com>.
764482794Sobrien
7645174294Sobrien2000-12-06  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
764682794Sobrien
7647174294Sobrien	* include/am_defs.h: force non-inclusion of <linux/fs.h> via
7648174294Sobrien	<linux/auto_fs.h>
764982794Sobrien
7650174294Sobrien	* conf/autofs/autofs_linux.c (autofs_mounted): rename
7651174294Sobrien	AUTOFS_MIN_PROTO_VERSION to AUTOFS_MIN_VERSION (leftover from
7652174294Sobrien	previous commit)
765382794Sobrien
7654174294Sobrien	* configure.in: fixed libtool version
765582794Sobrien
765682794Sobrien2000-12-02  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
765782794Sobrien
765882794Sobrien	* doc/am-utils.texi (opts Option): document lock/nolock
765982794Sobrien
7660174294Sobrien2000-12-02  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
7661174294Sobrien
7662174294Sobrien	* conf/autofs/autofs_linux.h: added struct autofs_pending_mount;
7663174294Sobrien	modified autofs_fh_t to have a linked list of autofs_pending_mount;
7664174294Sobrien	added some support for autofs4
7665174294Sobrien
7666174294Sobrien	* conf/autofs/autofs_linux.c: use a linked list for pending
7667174294Sobrien	request, to allow for handling multiple simultaneous request;
7668174294Sobrien	incipient non-functional support for autofs4; incipient
7669174294Sobrien	non-functional support for bind-mounting
7670174294Sobrien
7671174294Sobrien	* amd/amd.c (main): print a warning if PROCLOCK is requested but
7672174294Sobrien	the O/S doesn't support it
7673174294Sobrien
767482794Sobrien	* libamu/mount_fs.c (mnt_flags): allow the use of the "nolock"
767582794Sobrien	option
767682794Sobrien
7677174294Sobrien	* include/am_defs.h: don't include <linux/fs.h> on a glibc2
7678174294Sobrien	system; include <linux/auto_fs4.h> if it exists, instead of
7679174294Sobrien	<linux/auto_fs.h>
768082794Sobrien
768182794Sobrien	* include/am_compat.h: define the "nolock" mnttab option if the
768282794Sobrien	NONLM NFS mount option is defined
768382794Sobrien
7684174294Sobrien	* acconfig.h: added MNT2_NFS_OPT_NONLM, MNT2_GEN_OPT_BIND
768582794Sobrien
768682794Sobrien	* configure.in: added detection of the NONLM Linux NFS mount
768782794Sobrien	option; added a clarification for the library versioning rules and
7688174294Sobrien	increased the minor level; added detection of <linux/auto_fs4.h>
7689174294Sobrien	and the MS_BIND generic mount option
769082794Sobrien
7691174294Sobrien2000-11-29  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
7692174294Sobrien
7693174294Sobrien	* Enabled Solaris 2.7 autofs support (tested, works)
7694174294Sobrien
7695174294Sobrien	* Updated NEWS, README.autofs
7696174294Sobrien
7697174294Sobrien	* Updated Makefile's, make dist is now fixed
7698174294Sobrien
7699174294Sobrien	* Fixed potential memory leak in map.c
7700174294Sobrien
7701174294Sobrien	* Fixed autofs style detection for solaris 2.[67]
7702174294Sobrien
7703174294Sobrien	* Added a few casts in autofs_solaris2.c, needed on Solaris 2.7
7704174294Sobrien
7705174294Sobrien2000-11-28  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
7706174294Sobrien
7707174294Sobrien	More Solaris 2.[67] work in progress:
7708174294Sobrien
7709174294Sobrien	* changed the API for the mount/umount methods: fmount/fumount are
7710174294Sobrien	gone, and mount/umount now take two arguments (am_node and mntfs)
7711174294Sobrien
7712174294Sobrien	* changed the semantics of the MFF_AUTOFS flag: MFF_AUTOFS now
7713174294Sobrien	means the mntfs is a filesystem of type autofs, and AMF_AUTOFS
7714174294Sobrien	means the am_node is a node on a filesystem of type autofs.
7715174294Sobrien
7716174294Sobrien	* renamed nfs_program_2_transp to current_transp so it can be used
7717174294Sobrien	with autofs
7718174294Sobrien
7719174294Sobrien	* renamed quick_reply() to nfs_quick_reply()
7720174294Sobrien
7721174294Sobrien	* added two more autofs methods: autofs_umount_failed() and
7722174294Sobrien	autofs_compute_mount_flags() -- it turns out that on sol2.6 the
7723174294Sobrien	autofs mounts MUST be overlay'ed
7724174294Sobrien
7725174294Sobrien	* moved the autofs_mount_succeeded() into am_mounted()
7726174294Sobrien
7727174294Sobrien	* made amd *not* timeout autofs mounts -- the kernel will do it
7728174294Sobrien	for us
7729174294Sobrien
7730174294Sobrien	* store dev and rdev of a mounted filesystem in the mntfs
7731174294Sobrien	structure, to help autofs
7732174294Sobrien
7733174294Sobrien	* moved the rmdirs() call from uninit_mntfs() to am_umounted(), to
7734174294Sobrien	prevent deadlocking with autofs
7735174294Sobrien
7736174294Sobrien	* amd/Makefile.am: shuffled things around to make
7737174294Sobrien	update_build_version be the last thing that runs
7738174294Sobrien
773982794Sobrien2000-11-27  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
774082794Sobrien
7741174294Sobrien	* split amd/ops_autofs.c into conf/autofs/autofs_<system>.c files
7742174294Sobrien	and made configure create a symlink to the appropriate one
7743174294Sobrien
7744174294Sobrien	* moved the xdr autofs functions from libamu/xdr_func.c into the
7745174294Sobrien	system-specific conf/autofs/autofs*.c
7746174294Sobrien
7747174294Sobrien	* added some more experimental code to the sol2.6 autofs support,
7748174294Sobrien	but it's by no means functional
7749174294Sobrien
7750174294Sobrien2000-11-27  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
7751174294Sobrien
775282794Sobrien	* libamu/wire.c (getwire_lookup): truncate the hostname to
775382794Sobrien	MAXHOSTNAMELEN characters.
775482794Sobrien
775582794Sobrien2000-11-26  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
775682794Sobrien
775782794Sobrien	* include/am_utils.h (MAXHOSTNAMELEN): if not defined, set this to
775882794Sobrien	256 bytes, not 64.   Suggestion form Kris Kennaway
775982794Sobrien	<kris@FreeBSD.org>.
776082794Sobrien
776182794Sobrien2000-11-26  Erez Zadok  <ezk@dmath5.geometrie.tuwien.ac.at>
776282794Sobrien
776382794Sobrien	* configure.in (AC_CHECK_MNT2_NFS_OPTS): check for NFS mount
776482794Sobrien	options kerb, rdirplus, readdirsize, and xlatecookie
776582794Sobrien	(NetBSD-1.5K).
776682794Sobrien
776782794Sobrien	* acconfig.h: recognize NFS mount options rdirplus, readdirsize,
776882794Sobrien	and xlatecookie (NetBSD-1.5K)
776982794Sobrien
777082794Sobrien2000-11-24  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
777182794Sobrien
777282794Sobrien	* amd/srvr_nfs.c: comment on NFS proto search order.
777382794Sobrien
777482794Sobrien	* libamu/xutil.c (real_plog): don't try to write the last byte of
7775174294Sobrien	the fmt buf.  security suggtion from NetBSD: Thomas Klausner
777682794Sobrien	<wiz@danbala.ifoer.tuwien.ac.at>
777782794Sobrien
777882794Sobrien2000-11-22  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
777982794Sobrien
7780174294Sobrien	* amd/amfs_auto.c (amfs_auto_bgmount): removed the initialization of
778182794Sobrien	fattr.na_fileid, it is now done in map.c when the map is initialized
778282794Sobrien
778382794Sobrien	* amd/map.c (init_map): initialize fattr.na_fileid to am_gen, not
778482794Sobrien	to 0, to avoid cache aliasing problems on Linux (and to follow the
778582794Sobrien	NFS spec!)
778682794Sobrien
778782794Sobrien2000-11-22  Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
778882794Sobrien
778982794Sobrien	* libamu/mount_fs.c (mount_fs): avoid using extra limited-size buf
779082794Sobrien	(security)
779182794Sobrien
779282794Sobrien	* libamu/xutil.c, fsinfo/fsinfo.h, include/am_utils.h: use
779382794Sobrien	__attribute__, __format__, and __printf__ for GCC string auditing.
779482794Sobrien
779582794Sobrien	* wire-test/wire-test.8: this is not a section 8L man page.
779682794Sobrien
779782794Sobrien	* libamu/xutil.c (expand_error): don't use sys_nerr on systems
779882794Sobrien	that support strerror().
779982794Sobrien	(dplog): fmt is const
780082794Sobrien	(plog): fmt is const
780182794Sobrien	(real_plog): fmt is const.  use new expand_error function with its
780282794Sobrien	new return value. be more careful about running off the end of
780382794Sobrien	char[] fixed size buffers.
780482794Sobrien
780582794Sobrien	* libamu/wire.c (getwire): fix alignment error on alpha using an
780682794Sobrien	extra automatic storage variable ifrpool.
780782794Sobrien
780882794Sobrien	* hlfsd/hlfsd.c (fatal): use proper printf style to plog.
780982794Sobrien
781082794Sobrien	* fsinfo/fsinfo.c (find_username): getlogin() returns a const.
781182794Sobrien
781282794Sobrien	* fsinfo/fsi_util.c (error, lerror, lwarning, fatal, log): use
781382794Sobrien	vfprintf.
781482794Sobrien
781582794Sobrien	* fsinfo/fsi_lex.l (yyerror): use vfprintf.
781682794Sobrien
781782794Sobrien	* fixmount/fixmount.8: this is not a section 8L man page.
781882794Sobrien
781982794Sobrien	* doc/am-utils.texi (Hesiod maps): fixed typo.
782082794Sobrien
782182794Sobrien	* amd/sched.c (do_task_notify): typo in comment.
782282794Sobrien
782382794Sobrien	* amd/opts.c (expand_op): expand_error[] is a const char *.
782482794Sobrien
782582794Sobrien	* amd/amd.c (main): use proper printf style to plog.
782682794Sobrien
782782794Sobrien2000-11-22  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
782882794Sobrien
782982794Sobrien	* libamu/mount_fs.c (mnt_flags, compute_nfs_args): recognize
783082794Sobrien	proplist mnttab flag.  Bug fix from Wolfram Klaus
783182794Sobrien	<klaus@physik.fu-berlin.de>.
783282794Sobrien
783382794Sobrien2000-11-19  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
783482794Sobrien
783582794Sobrien	* updated config.guess, config.sub, and doc/texinfo.tex from
783682794Sobrien	mirrors
783782794Sobrien
783882794Sobrien	* Makefile.am (update): proper updating of config.* and texinfo
783982794Sobrien	from mirrors.
784082794Sobrien
784182794Sobrien	* aux/macros/check_nfs_prot_headers.m4: newer netbsd systems
784282794Sobrien	reports their system name as "netbsdelf" in config.guess.
784382794Sobrien
784482794Sobrien2000-11-13  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
784582794Sobrien
784682794Sobrien	* doc/am-utils.texi (opts Option): document new mount option
784782794Sobrien	"proplist"
784882794Sobrien
784982794Sobrien	* include/am_compat.h: define amd mount option "proplist" if the
785082794Sobrien	system doesn't recognize it, but the NFS bit flag exists.
785182794Sobrien
785282794Sobrien	* configure.in, acconfig.h: recognize/support "proplist" NFS mount
785382794Sobrien	option in Amd, useful under DU-4.0 to process ACLs over NFS
785482794Sobrien	mounts.
785582794Sobrien
7856174294Sobrien2000-11-10  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
785782794Sobrien
785882794Sobrien	* conf/mount/mount_linux.c (mount_linux): removed unnecessary
785982794Sobrien	rsize/wsize defaults -- performance killers on 2.2.18+ and 2.4.0+
786082794Sobrien
7861174294Sobrien2000-10-16  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
7862174294Sobrien
7863174294Sobrien	* scripts/am-eject.in: accept "cdrom" and "floppy" as arguments.
7864174294Sobrien
7865174294Sobrien2000-11-05  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
7866174294Sobrien
7867174294Sobrien	Too many changes to list them here. Here's a high level
7868174294Sobrien	description:
7869174294Sobrien
7870174294Sobrien	* Forward-ported the Linux fixes from 6.0.5pre
7871174294Sobrien
7872174294Sobrien	* Got rid of a mountain of #ifdef DEBUG, replaced with smart
7873174294Sobrien	header-file #ifdef's
7874174294Sobrien
7875174294Sobrien	* and, the grand finale: initial Solaris 2.6 autofs
7876174294Sobrien	support. Compiles, mounts, gets requests; all the
7877174294Sobrien	infrastructure is in place to actually implement the calls. Linux
7878174294Sobrien	autofs might be a bit broken, but only compile-time so it'll be
7879174294Sobrien	easy to fix.
7880174294Sobrien
788182794Sobrien2000-11-01  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
788282794Sobrien
788382794Sobrien	* MIRRORS (Note): added a mirror at ufl.edu
788482794Sobrien
788582794Sobrien2000-10-11  Erez Zadok  <ezk@lorien.dev.hydraweb.com>
788682794Sobrien
788782794Sobrien	* amq/amq.8: synchronize Amq's options with reality
788882794Sobrien
788982794Sobrien	* amq/amq.c (main): synchronize Amq's usage() string with reality
789082794Sobrien
789182794Sobrien2000-10-10  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
789282794Sobrien
789382794Sobrien	* scripts/ctl-amd.in: add targets condrestart (redhat) and
789482794Sobrien	reload.
789582794Sobrien
789682794Sobrien2000-10-04  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
789782794Sobrien
789882794Sobrien	* scripts/lostaltmail.in (vrfy_user): ensure that MAILDIR is
789982794Sobrien	defined.
790082794Sobrien
790182794Sobrien2000-09-18  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
790282794Sobrien
790382794Sobrien	* amd/opts.c (backslash): Bell char (ASCII 007) should be \g, not
790482794Sobrien	\a.
790582794Sobrien
790682794Sobrien2000-09-17  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
790782794Sobrien
790882794Sobrien	* include/am_utils.h: removed unused field opt_autopref
790982794Sobrien
791082794Sobrien	* amd/opts.c: removed unused variable $autopref
791182794Sobrien
791282794Sobrien2000-09-05  Erez Zadok  <ezk@aladdin.dev.hydraweb.com>
791382794Sobrien
791482794Sobrien	* conf/mtab/mtab_svr4.c (lockfile): function not needed unless
791582794Sobrien	MOUNT_TABLE_ON_FILE is defined.
791682794Sobrien	mtlckname static var is onlyneeded if MOUNT_TABLE_ON_FILE.
791782794Sobrien	(update_mnttab_fields): only needed if MOUNT_TABLE_ON_FILE.
791882794Sobrien
791982794Sobrien2000-09-03  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
792082794Sobrien
792182794Sobrien	* buildall (Usage): typo in usage string
792282794Sobrien
792382794Sobrien2000-08-25  Erez Zadok  <ezk@lynn.soscorp.com>
792482794Sobrien
792582794Sobrien	* conf/mount/mount_linux.c (mount_linux): MNT2_NFS_OPT_VER3 may
792682794Sobrien	is no defined on older Linux systems (kernel 2.0.36)
792782794Sobrien
792882794Sobrien2000-08-19  Erez Zadok  <ezk@earth.cs.columbia.edu>
792982794Sobrien
793082794Sobrien	* scripts/amd.conf.5: correct swapped descriptions for ldap_base
793182794Sobrien	and ldap_hostports.
793282794Sobrien
793382794Sobrien	* doc/am-utils.texi: correct swapped descriptions for ldap_base
793482794Sobrien	and ldap_hostports.
793582794Sobrien
793682794Sobrien	* scripts/amd.conf-sample: swap examples for ldap_base and
793782794Sobrien	ldap_hostports.
793882794Sobrien
793982794Sobrien2000-08-13  Erez Zadok  <ezk@earth.cs.columbia.edu>
794082794Sobrien
794182794Sobrien	* scripts/amd.conf-sample: -O is CLI equivalent to "os"
794282794Sobrien	amd.conf parameter
794382794Sobrien
794482794Sobrien2000-07-30  Erez Zadok  <ezk@earth.cs.columbia.edu>
794582794Sobrien
794682794Sobrien	* scripts/amd.conf-sample (nfs_retransmit_counter): correct
794782794Sobrien	meaning and use of parameter
794882794Sobrien
794982794Sobrien2000-07-23  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
795082794Sobrien
795182794Sobrien	* doc/am-utils.texi: updated URLs to www.am-utils.org.
795282794Sobrien
795382794Sobrien2000-07-04  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
795482794Sobrien
795582794Sobrien	* doc/am-utils.texi (Supported Platforms): document osf4.0f
795682794Sobrien
795782794Sobrien2000-06-19  Erez Zadok  <ezk@vir.cs.columbia.edu>
795882794Sobrien
795982794Sobrien	* doc/am-utils.texi (dollar Selector Variable): document
796082794Sobrien	${dollar}.
796182794Sobrien
796282794Sobrien	* amd/opts.c: special new variable ${dollar} which expands into a
796382794Sobrien	literal '$' sign.  Otherwise there is no way to include a literal
796482794Sobrien	dollar symbol in an amd map.
796582794Sobrien
7966174294Sobrien2000-06-11  Ion Badulescu  <ib42@moisil.cs.columbia.edu>
7967174294Sobrien
7968174294Sobrien	* amd/opts.c (eval_selectors): don't deref opt after it's been
7969174294Sobrien	XFREE'd
7970174294Sobrien
797182794Sobrien2000-06-11  Erez Zadok  <ezk@earth.cs.columbia.edu>
797282794Sobrien
7973174294Sobrien	* amd/opts.c: move mount_type expansion until later in the list,
7974174294Sobrien	so common variable are "hit" first.
797582794Sobrien
7976174294Sobrien2000-06-11  Ion Badulescu  <ib42@moisil.cs.columbia.edu>
7977174294Sobrien
7978174294Sobrien	* amd/opts.c (split_opts, eval_selectors): split old function
7979174294Sobrien	eval_opts into two, one that only splits non-selectors and
7980174294Sobrien	assigns the values to fs_static, and one that only evaluates
7981174294Sobrien	selectors; also simplified the rather obfuscated logic inside
7982174294Sobrien	these functions
7983174294Sobrien	(expand_op): made it take a char * instead of a structure from
7984174294Sobrien	which it was using only one field (a char *). Also now returns a
7985174294Sobrien	char * instead of modifying said structure in place
7986174294Sobrien	(expand_opts): deal with the change above
7987174294Sobrien	(expand_selectors): renamed from expand_key
7988174294Sobrien	(expand_options): new function, expands non-selectors; it's the
7989174294Sobrien	complement of expand_selectors, both of which are just wrappers
7990174294Sobrien	around expand_op()
7991174294Sobrien	(eval_fs_opts): use the new split_opts, eval_selectors to allow
7992174294Sobrien	using options (like ${rhost}) in selectors
7993174294Sobrien
799482794Sobrien2000-06-11  Ion Badulescu  <ionut@moisil.cs.columbia.edu>
799582794Sobrien
799682794Sobrien	* config.guess.long: munge config.guess' output so that intel
799782794Sobrien	linux appears as i386-pc-linux
799882794Sobrien
799982794SobrienFri Jun  9 16:06:56 2000  Erez Zadok  <ezk@defiant.dev.hydraweb.com>
800082794Sobrien
800182794Sobrien	* conf/nfs_prot/nfs_prot_bsdi2.h: getifaddrs() on bsdi2 is broken.
800282794Sobrien	Don't use it.
800382794Sobrien
800482794Sobrien2000-06-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
800582794Sobrien
800682794Sobrien	* amd/mapc.c (maptypes): Change default allocation mode to
800782794Sobrien	MAPC_INC where reload support is missing to avoid warning in
800882794Sobrien	mapc_create().
800982794Sobrien
801082794Sobrien2000-06-09  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
801182794Sobrien
801282794Sobrien	* conf/nfs_prot/nfs_prot_sunos5_5.h: turn off autofs support for
801382794Sobrien	solaris 2.5 until a full port can be done.
801482794Sobrien
801582794Sobrien2000-06-07  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
801682794Sobrien
801782794Sobrien	* Makefile.am, aux/GNUmakefile: fix maintainer rules to update
801882794Sobrien	config.* and texinfo.tex files.
801982794Sobrien
802082794Sobrien	* amd/nfs_subr.c (nfsproc_getattr_2_svc): Don't conditionalize the
802182794Sobrien	mtime update of the symlinks on the SYMTTL option, but rather
802282794Sobrien	delay unmount of what was looked up using am_timeo_w.  Patch from
802382794Sobrien	Nick Williams <Nick.Williams@msdw.com>.  As Nick says "Basically:
8024174294Sobrien	during unmount, increment the parent dir's mtime (fixes
8025174294Sobrien	people doing amq -u). During stat, increase the TTL (to fix bad-luck
802682794Sobrien	timeouts), but leave the mtime alone."
802782794Sobrien
802882794Sobrien	(nfsproc_lookup_2_svc, nfsproc_readlink_2_svc, unlink_or_rmdir,
802982794Sobrien	nfsproc_readdir_2_svc): correctly update d_drops stats for amq -s.
803082794Sobrien	Patch from Nick Williams <Nick.Williams@msdw.com>.
803182794Sobrien
803282794Sobrien	* amd/map.c (unmount_mp): update mtime of amd symlink to further
803382794Sobrien	reduce the chances of race conditions between unmounting and
803482794Sobrien	looking up an entry again.  Patch from Nick Williams
803582794Sobrien	<Nick.Williams@msdw.com>.
803682794Sobrien
803782794Sobrien	* README: updated instructions
803882794Sobrien
803982794Sobrien	* bootstrap: remove log file before existing
804082794Sobrien
804182794Sobrien2000-06-06  Erez Zadok  <ezk@aladdin.dev.hydraweb.com>
804282794Sobrien
804382794Sobrien	* configure.in: no longer using aux/ subdir. don't force autoconf
804482794Sobrien	2.14. comment out (but leave explanation) everything that's needed
804582794Sobrien	for autoconf 2.14, so for now it works with autoconf-2.13, but the
804682794Sobrien	code is ready for 2.14 when it is released.  Similar changes to
804782794Sobrien	make code work with automake-1.4, until the next release comes
804882794Sobrien	out.
804982794Sobrien
805082794Sobrien	* libamu/Makefile.am: include definitions that are required in
805182794Sobrien	automake 1.4, but won't be necessary when the next release of
805282794Sobrien	automake comes out (see XXX comments).
805382794Sobrien
805482794Sobrien	* cache_check_dynamic.m4, check_checkmount_style.m4,
805582794Sobrien	check_mnttab_style.m4, check_mount_style.m4,
805682794Sobrien	check_network_transport_type.m4, check_nfs_prot_headers.m4,
805782794Sobrien	check_umount_style.m4: use symlink creation code that works for
805882794Sobrien	both autoconf 2.13 and 2.14 (when the latter comes out).
805982794Sobrien
806082794Sobrien	* bootstrap: new script for maintainers to run to update autoconf,
806182794Sobrien	automake, and libtool related files.  Has the same effect as
806282794Sobrien	"buildall -K".
806382794Sobrien
806482794Sobrien	* removed dependencies on CVS versions of autoconf, automake, and
806582794Sobrien	libtool, especially the modified automake I had.  This is so that
806682794Sobrien	maintainers could built the auto* files out of the latest released
806782794Sobrien	GNU autoconf, automake, and libtool.  However, without my nice
806882794Sobrien	patches to automake, many files that used to live in the aux/
806982794Sobrien	subdir now were moved to the top level source directory: acconfig.h,
807082794Sobrien	acinclude.m4, aclocal.m4, aux_conf.h.in, config.guess,
807182794Sobrien	config.guess.long, config.h.in, config.sub, configure.in, depcomp,
807282794Sobrien	install-sh, ltconfig, ltmain.sh, missing, and mkinstalldirs.  Also
807382794Sobrien	texinfo.tex and mdate-sh moved from aux/ dir to doc/ dir.
807482794Sobrien
807582794Sobrien2000-06-05  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
807682794Sobrien
807782794Sobrien	* cvs-server.txt: instructions for maintainers to access the CVS
807882794Sobrien	server for am-utils.
807982794Sobrien
8080174294Sobrien2000-06-03  Ion Badulescu  <ionut@moisil.cs.columbia.edu>
8081174294Sobrien
8082174294Sobrien	* amd/restart.c (restart): grr.. passing around initialized
8083174294Sobrien	structures is *really* bad habit. memset(mo, 0) so at least we can
8084174294Sobrien	test for NULL pointers...
8085174294Sobrien
808682794Sobrien2000-06-02  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
808782794Sobrien
808882794Sobrien	* amd/am_ops.c (ops_match): changed XLOG_USER messages about
808982794Sobrien	merging addopts options to the more appropriate XLOG_INFO.  Patch
809082794Sobrien	submitted by Tom Schmidt <tschmidt@micron.com>.
809182794Sobrien
809282794Sobrien	* config.{guess,sub}: make sure chmod'ed a+rx.  Updated from
809382794Sobrien	latest GNU copies.
809482794Sobrien
8095174294Sobrien2000-05-30  Ion Badulescu  <ionut@moisil.cs.columbia.edu>
809682794Sobrien
8097174294Sobrien	* aux/configure.in: bump up the version to 6.1a2
809882794Sobrien
809982794Sobrien2000-05-29  Ion Badulescu  <ionut@moisil.cs.columbia.edu>
810082794Sobrien
8101174294Sobrien	* released snapshot am-utils-6.1a1
8102174294Sobrien
8103174294Sobrien2000-05-29  Ion Badulescu  <ionut@moisil.cs.columbia.edu>
8104174294Sobrien
8105174294Sobrien	* amd/ops_autofs.c (autofs_mounted): retrieve the autofs protocol
8106174294Sobrien	version and store it in the fh
8107174294Sobrien	(autofs_get_opts): support protocol version 4
8108174294Sobrien
8109174294Sobrien	* amd/mntfs.c (uninit_mntfs): clear the autofs fh pointer after
8110174294Sobrien	releasing it
8111174294Sobrien
811282794Sobrien	* conf/transp/transp_sockets.c (amu_svc_getcaller): cast result of
811382794Sobrien	svc_getcaller() to sockaddr_in, to appease glibc 2.2
811482794Sobrien
8115174294Sobrien	* amd/amfs_auto.c (amfs_auto_bgmount): if the filesystem wants
8116174294Sobrien	autofs handling and the parent is already handled by autofs,
8117174294Sobrien	handle this filesystem as well
8118174294Sobrien	(amfs_auto_mount): create the mountpoint for an autofs mount
8119174294Sobrien	(amfs_auto_umount): do a real UMOUNT_FS() call for autofs mounts
8120174294Sobrien
8121174294Sobrien	* include/am_utils.h (FS_AUTOFS): new flag signalling that the
8122174294Sobrien	filesystem wants autofs handling; toplvl, auto, host and direct
8123174294Sobrien	have this flag, at least for now
8124174294Sobrien
812582794Sobrien2000-05-28  Erez Zadok  <ezk@mulberry.mcl.cs.columbia.edu>
812682794Sobrien
812782794Sobrien	* doc/am-utils.texi (Network Filesystem Group): minor typos
812882794Sobrien
8129174294Sobrien2000-05-28  Ion Badulescu  <ionut@moisil.cs.columbia.edu>
813082794Sobrien
8131174294Sobrien	* amd/autil.c (am_unmounted): check mp->am_parent before dereferencing
813282794Sobrien
8133174294Sobrien	* amd/srvr_nfs.c (find_nfs_srvr): if NFS_SCALEDOWN, force
8134174294Sobrien	version=2 and proto=udp and try again
813582794Sobrien
8136174294Sobrien	* amd/ops_nfs.c (prime_nfs_fhandle_cache): take an explicit mntfs
8137174294Sobrien	instead of a voidp; handle the NFS_SCALEDOWN case by removing the
8138174294Sobrien	cached server entry and re-querying the server
8139174294Sobrien
8140174294Sobrien	* amd/amfs_toplvl.c (amfs_toplvl_mount): removed ugly if
8141174294Sobrien	statement, assign mnttype from the fs-specific mf_ops->fs_type
8142174294Sobrien	instead
8143174294Sobrien
8144174294Sobrien	* amd/amfs_nfsx.c (amfs_nfsx_init): call fs_init() only if it's
8145174294Sobrien	defined;
8146174294Sobrien	(amfs_nfsx_remount): removed superfluous check for fmount_fs -- it
8147174294Sobrien	always exists
8148174294Sobrien	(amfs_nfsx_umount): removed the hacked am_node -- umounted() now
8149174294Sobrien	takes an mntfs; call umounted() only if it's defined
8150174294Sobrien
8151174294Sobrien	* amd/amfs_auto.c: removed amfs_auto_umounted and moved its
8152174294Sobrien	functionality into am_umounted().
8153174294Sobrien	(amfs_auto_cont): Linux hack: if we got an EINVAL, mark the mntfs
8154174294Sobrien	as needing an "NFS scaledown" and retry the operation
8155174294Sobrien
8156174294Sobrien	* amd/amfs_*.c: changed all fmount/fumount functions to
8157174294Sobrien	mount/umount and made them take an am_node instead of an
8158174294Sobrien	mntfs. This is a first step towards an amfs/ops API separation.
8159174294Sobrien
8160174294Sobrien	* amd/{amfs,ops}_*.c: changed the umounted() function to take an
8161174294Sobrien	mntfs instead of an am_node
8162174294Sobrien
8163174294Sobrien2000-05-28  Ion Badulescu  <ionut@moisil.cs.columbia.edu>
8164174294Sobrien
8165174294Sobrien	* amd/amfs_toplvl.c (mount_amfs_toplvl): init error to 0 to shut
8166174294Sobrien	up gcc
8167174294Sobrien
8168174294Sobrien	* aux/macros/check_hide_mount_type.m4: revert to the 6.0 version
8169174294Sobrien	which always defines HIDE_MOUNT_TYPE
8170174294Sobrien
8171174294Sobrien	* amd/ops_autofs.c (autofs_mounted): remove MFF_AUTOFS
8172174294Sobrien	initialization -- now done in init_mntfs()
8173174294Sobrien
8174174294Sobrien	* amd/mntfs.c (init_mntfs): init mf_flags to MFF_AUTOFS if we are
8175174294Sobrien	mounting an autofs-style map
8176174294Sobrien
8177174294Sobrien	* amd/*.c: use the MFF_AUTOFS flag instead of doing a costly STREQ
8178174294Sobrien
8179174294Sobrien	* amd/amfs_toplvl.c (mount_amfs_toplvl): MTYPE_TYPE is not
8180174294Sobrien	necessarily a string type, so handle the nfs/autofs separation
8181174294Sobrien	differently
8182174294Sobrien
8183174294Sobrien	* amd/amfs_auto.c (amfs_auto_bgmount): removed initialization of
8184174294Sobrien	opt_mount_type (now done in ops_match())
8185174294Sobrien
8186174294Sobrien	* amd/am_ops.c (ops_match): need to initialize opt_mount_type if
8187174294Sobrien	it's not initialized yet
8188174294Sobrien
8189174294Sobrien2000-05-27  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
8190174294Sobrien
819182794Sobrien	* libamu/wire.c (getwire_lookup): handle calling irs_gen_acc with
819282794Sobrien	one or two arguments (bsdi3 vs. bsdi4)
819382794Sobrien
8194174294Sobrien2000-05-27  Ion Badulescu  <ib42@chestnut.mcl.cs.columbia.edu>
8195174294Sobrien
8196174294Sobrien	* libamu/xutil.c (amu_release_controlling_tty): removed an unused
8197174294Sobrien	variable from the previous patch
8198174294Sobrien
819982794Sobrien2000-05-26  Ion Badulescu  <ionut@moisil.cs.columbia.edu>
820082794Sobrien
8201174294Sobrien	* aux/macros/check_autofs_style.m4: fixed substitution for default
8202174294Sobrien	case
8203174294Sobrien
820482794Sobrien	* libamu/xutil.c (amu_release_controlling_tty): close standard
820582794Sobrien	file descriptors, re-open them as /dev/null
820682794Sobrien
820782794Sobrien	* include/am_defs.h: don't try to include both <ndbm.h> and
820882794Sobrien	<db1/ndbm.h>, it really doesn't work
820982794Sobrien
821082794Sobrien2000-05-16  Ion Badulescu  <ib42@earth.cs.columbia.edu>
821182794Sobrien
821282794Sobrien	* hlfsd/stubs.c (nfsproc_lookup_2_svc): added code to update mtime
821382794Sobrien	on lookup if MNT2_NFS_OPT_SYMTTL is not defined (copied from
821482794Sobrien	getattr).  This fixes the problem introduced by the Linux nfsv3
821582794Sobrien	patches.
821682794Sobrien
8217174294Sobrien2000-05-12  Ion Badulescu  <ionut@moisil.cs.columbia.edu>
8218174294Sobrien
8219174294Sobrien	* Makefile.am (EXTRA_DIST_CONF): added conf/autofs/autofs_linux.h
8220174294Sobrien
8221174294Sobrien2000-05-10  Ion Badulescu  <ib42@earth.cs.columbia.edu>
8222174294Sobrien
8223174294Sobrien	* amd/ops_autofs.c (autofs_handle_fdset): call
8224174294Sobrien	autofs_lookup_failed instead of autofs_mount_failed, if the name
8225174294Sobrien	is not in the map
8226174294Sobrien	(autofs_umount_{succeeded,failed}): pass the actual mount point,
8227174294Sobrien	not its parent, as it's needed for clean-up;
8228174294Sobrien
8229174294Sobrien	* amd/autil.c (am_unmounted): notify autofs that the umount
8230174294Sobrien	succeeded
8231174294Sobrien
8232174294Sobrien	* amd/amfs_link.c (amfs_link_[u]mount): autofs link notification
8233174294Sobrien	moved elsewhere
8234174294Sobrien
8235174294Sobrien2000-05-09  Ion Badulescu  <ionut@moisil.cs.columbia.edu>
8236174294Sobrien
8237174294Sobrien	* amd/amfs_auto.c (amfs_auto_bgmount): initialize opt_mount_type
8238174294Sobrien	if necessary;
8239174294Sobrien	(amfs_auto_mounted): test if opt_mount_type is NULL first
8240174294Sobrien	(amfs_auto_mount): revert earlier change
8241174294Sobrien
8242174294Sobrien	* amd/ops_autofs.c (autofs_mount_failed): remove autofs directory
8243174294Sobrien	if mount failed
8244174294Sobrien
8245174294Sobrien2000-05-09  Ion Badulescu  <ionut@moisil.cs.columbia.edu>
8246174294Sobrien
8247174294Sobrien	* amd/ops_autofs.c (autofs_link_mount): use am_link as target
8248174294Sobrien
8249174294Sobrien	* amd/map.c (unmount_mp): release file handle for autofs f/s about
8250174294Sobrien	to be unmounted; this leak was preventing the unmount altogether
8251174294Sobrien
8252174294Sobrien	* amd/amfs_auto.c (amfs_auto_umount): removed autofs-specific
8253174294Sobrien	code, was broken
8254174294Sobrien	(amfs_auto_bgmount): nfs mounts + sublinks is a valid combination,
8255174294Sobrien	handle it
8256174294Sobrien
8257174294Sobrien2000-05-07  Ion Badulescu  <ib42@moisil.cs.columbia.edu>
8258174294Sobrien
8259174294Sobrien	* Merged changes from stable branch
8260174294Sobrien
826182794Sobrien2000-04-30  Erez Zadok  <ezk@beetle.mcl.cs.columbia.edu>
826282794Sobrien
826382794Sobrien	* include/am_defs.h, aux/macros/mount_headers.m4,
826482794Sobrien	aux/macros/try_compile_anyfs.m4: include linux/kdev_t.h and
826582794Sobrien	linux/list.h before including linux/fs.h, and define __KERNEL__
826682794Sobrien	for those two headers.  All of this to get a couple of definitions
826782794Sobrien	that are needed in the new struct vfsmount.
826882794Sobrien
826982794Sobrien	* aux/configure.in: look for <linux/kdev_t.h> and <linux/list.h>.
827082794Sobrien
827182794Sobrien	* include/am_defs.h, aux/macros/mount_headers.m4: avoid conflicts
827282794Sobrien	between linux/in.h. and netinet/in.h (linux-2.3.99-pre6), by
827382794Sobrien	defining _LINUX_IN_H so it doesn't get included.
827482794Sobrien
827582794Sobrien2000-04-03  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
827682794Sobrien
827782794Sobrien	* minor new ports: i686-pc-linux-gnu-rh6.2,
827882794Sobrien	i386-unknown-freebsdelf3.4, i586-pc-linux-gnu-rh6.2.
827982794Sobrien
828082794Sobrien2000-04-03  Erez Zadok  <ezk@vir.cs.columbia.edu>
828182794Sobrien
828282794Sobrien	* aux/acconfig.h: move all #undef macros above @TOP@, so they can
828382794Sobrien	be recognized by pickier autoconf.
828482794Sobrien
828582794Sobrien2000-04-03  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
828682794Sobrien
828782794Sobrien	* aux/macros/cache_check_dynamic.m4 (ac_tmp): use correct echo -n
828882794Sobrien	or \c.
828982794Sobrien
829082794Sobrien2000-03-25  Erez Zadok  <ezk@beetle.mcl.cs.columbia.edu>
829182794Sobrien
829282794Sobrien	* include/am_defs.h: ditto
829382794Sobrien
829482794Sobrien	* aux/macros/{mount_headers,try_compile_anyfs}.m4: force
829582794Sobrien	non-inclusion of <linux/string.h>.  Breaks build on newer 2.3
829682794Sobrien	kernels.
829782794Sobrien
829882794Sobrien2000-02-26  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
829982794Sobrien
830082794Sobrien	* doc/am-utils.texi (Amq -w option): document new amq -w option.
830182794Sobrien
830282794Sobrien	* amq/amq.8: document new amq -w option.
830382794Sobrien
830482794Sobrien	* amq/amq.c: disable last remains of insecure amq -M code.
830582794Sobrien	(main): add amq -H option to show usage.
830682794Sobrien	(main): new amq -w option, translates getpwd() into an amd path.
830782794Sobrien
8308174294Sobrien2000-02-25  Ion Badulescu  <ionut@moisil.cs.columbia.edu>
8309174294Sobrien
8310174294Sobrien	* libamu/util.c (get_server_pid): new function
8311174294Sobrien
8312174294Sobrien	* hlfsd/hlfsd.c (main): make use of HIDE_MOUNT_TYPE
8313174294Sobrien
8314174294Sobrien	* conf/transp/transp_sockets.c: removed create_autofs_service
8315174294Sobrien
8316174294Sobrien	* conf/mount/mount_linux.c: added autofs mount options; split
8317174294Sobrien	mount_linux into two functions, itself and do_mount_linux
8318174294Sobrien
8319174294Sobrien	* aux/macros/check_hide_mount_type.m4: better failover
8320174294Sobrien
8321174294Sobrien	* aux/configure.in: changed version to 6.1a1; added
8322174294Sobrien	AC_CHECK_AUTOFS_STYLE
8323174294Sobrien
8324174294Sobrien	* aux/aux_conf.h.in: added @am_utils_autofs_style@
8325174294Sobrien
8326174294Sobrien	* amd/opts.c: added "mount_type" option
8327174294Sobrien
8328174294Sobrien	* amd/ops_autofs.c: ifdef-ed out solaris code; moved all autofs
8329174294Sobrien	variables in here; split create_autofs_service into sun and linux
8330174294Sobrien	specific functions
8331174294Sobrien
8332174294Sobrien	* amd/nfs_start.c: removed autofs-specific variables
8333174294Sobrien
8334174294Sobrien	* amd/map.c (get_root_nfs_fh): renamed root_fh to get_root_nfs_fh
8335174294Sobrien	(get_root_ap): renamed root_ap to get_root_ap
8336174294Sobrien
8337174294Sobrien	* amd/amfs_toplvl.c (amfs_toplvl_ops): replaced
8338174294Sobrien	amfs_toplvl_mounted with amfs_auto_mounted
8339174294Sobrien	(mount_amfs_toplvl): moved code around, added autofs handling
8340174294Sobrien	(amfs_toplvl_mounted): removed
8341174294Sobrien
8342174294Sobrien	* amd/amfs_nfsl.c (amfs_nfsl_ops): removed amfs_auto_fu?mount,
8343174294Sobrien	replaced with amfs_nfsl_u?mount
8344174294Sobrien
8345174294Sobrien	* amd/amfs_linkx.c (amfs_linkx_ops): removed amfs_auto_fumount,
8346174294Sobrien	replaced with amfs_link_umount
8347174294Sobrien
8348174294Sobrien	* amd/amfs_link.c (amfs_link_ops): removed amfs_auto_fu?mount,
8349174294Sobrien	replaced with amfs_link_u?mount
8350174294Sobrien
8351174294Sobrien	* amd/amfs_direct.c (amfs_direct_ops): changed "mounted" function
8352174294Sobrien	from amfs_toplvl_mounted to amfs_auto_mounted
8353174294Sobrien
8354174294Sobrien	* all: added autofs hooks throughout the code
8355174294Sobrien
8356174294Sobrien	* amd/am_ops.c (vops): autofs_ops doesn't belong in here, removed
8357174294Sobrien
8358174294Sobrien	* README.autofs: linux status update
8359174294Sobrien
836082794Sobrien2000-02-24  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
836182794Sobrien
836282794Sobrien	* minor new port: alphaev6-dec-osf5.0
836382794Sobrien
836482794Sobrien	* doc/am-utils.texi (Supported Platforms): hpux-11 supports NFSv3,
836582794Sobrien	but only for UDP.
836682794Sobrien
836782794Sobrien	* released snapshot am-utils-6.0.4s3
836882794Sobrien
836982794Sobrien	* conf/nfs_prot/nfs_prot_hpux11.h: support NFSv3 in hpux-11.  Note
837082794Sobrien	that hpux-11 NFSv3 supports UDP only, and trying TCP locks up the
837182794Sobrien	kernel!  Must set nfs_proto=udp in amd.conf [global].
837282794Sobrien
837382794Sobrien	* aux/config.guess.long: set and export PATH separately.  DU5
837482794Sobrien	/bin/sh doesn't like setting it on the command line in a
837582794Sobrien	back-tick'ed `script`.
837682794Sobrien
837782794Sobrien2000-02-24  Ion Badulescu  <ionut@moisil.cs.columbia.edu>
837882794Sobrien
837982794Sobrien	* Makefile.am: removed struct_nfs_mount_data.m4
838082794Sobrien
838182794Sobrien	* aux/macros/struct_nfs_mount_data.m4: deleted
8382174294Sobrien
838382794Sobrien	* aux/acconfig.h: removed definition for HAVE_NFS_MOUNT_DATA
838482794Sobrien
838582794Sobrien	* aux/configure.in: removed check for struct nfs_mount_data
838682794Sobrien
838782794Sobrien2000-02-24  Ion Badulescu  <ib42@beetle.mcl.cs.columbia.edu>
838882794Sobrien
838982794Sobrien	* amd/amfs_auto.c (amfs_auto_bgmount): changed log message to
839082794Sobrien	avoid having 'failed' in a message not indicating a failure
839182794Sobrien	(amfs_auto_lookuppn): ditto
839282794Sobrien
839382794Sobrien	* amd/ops_autofs.c (autofs_bgmount): ditto
839482794Sobrien	(autofs_lookuppn): ditto
839582794Sobrien
839682794Sobrien2000-02-24  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
839782794Sobrien
839882794Sobrien	* added .cvsignore files into the CVS repository.
839982794Sobrien
840082794Sobrien	* remove files which can be regenerated: .in, configure, some
840182794Sobrien	files in aux/, and more.
840282794Sobrien
840382794Sobrien2000-02-20  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
840482794Sobrien
840582794Sobrien	* doc/am-utils.texi (nfs_vers/nfs_proto): description of two
840682794Sobrien	parameters was reversed.  Reported by Paul Jenner
840782794Sobrien	<p.jenner@eim.surrey.ac.uk>.
840882794Sobrien
840982794Sobrien2000-02-16  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
841082794Sobrien
841182794Sobrien	* released snapshot am-utils-6.0.4s2
841282794Sobrien
841382794Sobrien	* amd/mntfs.c (realloc_mntfs): don't fallback on certain ops such
841482794Sobrien	as inherit, error, and toplvl (failover code).
841582794Sobrien
841682794Sobrien	* amd/conf.c (gopt_nfs_vers, gopt_nfs_proto): two new (documented)
841782794Sobrien	global options in amd.conf: one to set the NFS version globally
841882794Sobrien	(i.e., nfs_vers=2), and one to set the NFS protocol globally
841982794Sobrien	(i.e., nfs_proto=udp).
842082794Sobrien
842182794Sobrien	* amd/mntfs.c (realloc_mntfs): attempt to fix the failover code,
842282794Sobrien	so when a matching mount entry failed, try the next one.
842382794Sobrien
842482794Sobrien2000-02-15  Erez Zadok  <ezk@moisil.cs.columbia.edu>
842582794Sobrien
842682794Sobrien	* amd/amfs_auto.c: a new debug option "readdir" to trace the
842782794Sobrien	progress of the browsable_dirs code.
842882794Sobrien
842982794Sobrien	* conf/mount/mount_linux.c (mount_linux): ensure that the new
843082794Sobrien	linux NFSv3 code works for v2-only machines.
843182794Sobrien
843282794Sobrien2000-02-14  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
843382794Sobrien
843482794Sobrien	* aux/configure.in: cleanup unused dnl entries.
843582794Sobrien
843682794Sobrien	* conf/mount/mount_linux.c (parse_opts): typo: check for string
843782794Sobrien	equality, not string inequality for pcfs and cdfs.
843882794Sobrien
843982794Sobrien	* aux/acconfig.h: look for MNT2_NFS_OPT_INTR as well.
844082794Sobrien
844182794Sobrien	* libamu/mount_fs.c (compute_mount_flags): check for INTR and
844282794Sobrien	NOINTR options as well (intr was never passed to linux mount
844382794Sobrien	syscall).
844482794Sobrien
844582794Sobrien2000-02-10  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
844682794Sobrien
844782794Sobrien	* released snapshot am-utils-6.0.4s1
844882794Sobrien
844982794Sobrien	* aux/GNUmakefile: buildall -k (for maintainers) temporarily now
845082794Sobrien	ignores autoconf warnings: "The macro `AC_OUTPUT_COMMANDS' is
845182794Sobrien	obsolete".  It is harmless but annoying, and will be fixed when
845282794Sobrien	autoconf and automake in their respective CVS trees are working
845382794Sobrien	and in sync again.
845482794Sobrien
845582794Sobrien	* scripts/amd.conf.5: document -D hrtime,xdrtrace
845682794Sobrien
845782794Sobrien	* all man pages: update copyright to 2000.
845882794Sobrien
845982794Sobrien	* doc/am-utils.texi: update copyright to 2000.
846082794Sobrien
846182794SobrienWed Feb  9 14:22:31 2000  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
846282794Sobrien
846382794Sobrien	* include/am_utils.h (D_XDRTRACE): Define.
846482794Sobrien	(D_TEST): Disable here.
846582794Sobrien
846682794Sobrien	* libamu/xutil.c (dbg_opt): Handle it.
846782794Sobrien
846882794Sobrien	* doc/am-utils.texi (-D-Option): Document it.
846982794Sobrien
847082794Sobrien	* libamu/xdr_func.c: Use it instead of D_TRACE.
847182794Sobrien
847282794Sobrien	* include/am_utils.h (D_HRTIME): Define.
847382794Sobrien
847482794Sobrien	* doc/am-utils.texi (-D-Option): Document it.
847582794Sobrien
847682794Sobrien	* libamu/xutil.c (show_time_host_and_name): Print high-resolution
847782794Sobrien	timestamp if available and activated.
847882794Sobrien
847982794Sobrien	* aux/configure.in (clock_gettime): Check for it in -lrt and
848082794Sobrien	-lposix4.
848182794Sobrien
848282794Sobrien	* hlfsd/hlfsd.c (mnttab_file_name): Initialize to MNTTAB_FILE_NAME
848382794Sobrien	if defined, even for some systems with in kernel mount tables.
848482794Sobrien
848582794Sobrien2000-02-08  Ion Badulescu  <ionut@moisil.cs.columbia.edu>
848682794Sobrien
848782794Sobrien	* aux/macros/mount_headers.m4: remove #if 0 around linux/nfs.h to
848882794Sobrien	allow compiles against libc5
848982794Sobrien
849082794Sobrien	* aux/macros/check_mnttab_type.m4: avoid detecting nfs3 under
849182794Sobrien	linux when the kernel doesn't support it
849282794Sobrien
849382794Sobrien	* include/am_compat.h: add workaround for linux efs
849482794Sobrien
849582794Sobrien2000-02-08  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
849682794Sobrien
849782794Sobrien	* aux/configure.in: test for ANSI C compiler (before AC_C_CONST).
849882794Sobrien	Comment out unused AC_STRUCT_ST_RDEV (which is obsolete anyway).
849982794Sobrien
850082794Sobrien2000-02-07  Ion Badulescu  <ionut@moisil.cs.columbia.edu>
850182794Sobrien
850282794Sobrien	* libamu/mount_fs.c (compute_nfs_args): turn on VER3 option for
850382794Sobrien	nfs (linux NFSv3).
850482794Sobrien
850582794Sobrien	* include/am_defs.h: avoid reinclusion of some header files under
850682794Sobrien	linux.
850782794Sobrien
850882794Sobrien	* conf/nfs_prot/nfs_prot_linux.h: support NFSv3.
850982794Sobrien
851082794Sobrien	* conf/mount/mount_linux.c (mount_linux): support nfs mount
851182794Sobrien	 (implementation) version 4 for NFSv3.
851282794Sobrien
851382794Sobrien	* aux/macros/try_compile_nfs.m4: use AC_MOUNT_HEADERS.
851482794Sobrien
851582794Sobrien	* aux/macros/mount_headers.m4: don't include <linux/fs.h> (may
851682794Sobrien	need to fix the code on other linux machines).
851782794Sobrien
851882794Sobrien	* aux/macros/check_mnttab_type.m4 (ac_safe): ditto.
851982794Sobrien
852082794Sobrien	* aux/macros/check_fs_mntent.m4 (ac_safe): check for nfs3 option
852182794Sobrien	under linux (depends on ac_cv variable, is that a good idea?)
852282794Sobrien
852382794Sobrien	* added NFSv3 support for linux
852482794Sobrien
852582794Sobrien	* aux/{configure.in,acconfig.h}: new option ver3
852682794Sobrien
852782794Sobrien	* aux/macros/mount_headers.m4: commented out inclusion of
852882794Sobrien	linux/fs.h, it's not needed on rh61 (and actually generates
852982794Sobrien	conflicts), we should see if it's still needed on libc5 systems
853082794Sobrien
853182794Sobrien	* aux/macros/try_compile_nfs.m4: use AC_MOUNT_HEADERS rather than
853282794Sobrien	try to have its own (out of date) list of headers and ifdef's and
853382794Sobrien	...
853482794Sobrien
853582794Sobrien2000-02-07  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
853682794Sobrien
853782794Sobrien	*******************************************************************
853882794Sobrien	*** Released am-utils-6.0.3					***
853982794Sobrien	*******************************************************************
854082794Sobrien
854182794Sobrien2000-02-06  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
854282794Sobrien
854382794Sobrien	* conf/mount/mount_default.c: dummy empty file to work around a
854482794Sobrien	limitation of automake (it looks for LIBBOBJS in aclocal.m4 and
854582794Sobrien	processes them even if they are optional, enclosed in if/else).
854682794Sobrien
854782794Sobrien2000-01-29  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
854882794Sobrien
854982794Sobrien	* released snapshot am-utils-6.0.3s5
855082794Sobrien
855182794Sobrien2000-01-25  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
855282794Sobrien
855382794Sobrien	* update to use latest version of autoconf, automake, and libtool.
855482794Sobrien
855582794Sobrien	* aux/GNUmakefile (depcomp): "make update" should also update the
855682794Sobrien	depcomp script.
855782794Sobrien
855882794Sobrien	* Makefile.am (EXTRA_DIST_AUX): include depcomp in distribution.
855982794Sobrien
856082794Sobrien	* aux/configure.in: use renamed AC_CHECK_AMU_FS.
856182794Sobrien
856282794Sobrien	* aux/macros/check_amu_fs.m4: renamed macro name and file name to
856382794Sobrien	say AMU_FS, not AM_FS.
856482794Sobrien
856582794Sobrien	* aux/acconfig.h: renamed HAVE_AM_FS_* to HAVE_AMU_FS_* because
856682794Sobrien	latest version of autoconf doesn't handle it (bug in 2.14a)
856782794Sobrien
856882794Sobrien	* aux/configure.in: require version 2.14 of autoconf.
856982794Sobrien
857082794Sobrien	* amd/mapc.c (mapc_reload_map): more fixes from Nick Williams.
857182794Sobrien
857282794Sobrien	* doc/am-utils.texi (Automount Filesystem): document type:=auto
857382794Sobrien	map browsability option.
857482794Sobrien
857582794Sobrien	* amd/mapc.c (make_entry_chain): patch from Steven Danz
857682794Sobrien	<sdanz@awc.kc.noaa.gov> to allow browsable auto maps.
857782794Sobrien
857882794Sobrien2000-01-24  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
857982794Sobrien
858082794Sobrien	* released snapshot am-utils-6.0.3s4
858182794Sobrien
858282794Sobrien	* amd/mapc.c (mapc_reload_map): fixes to sync maps even if they
858382794Sobrien	are set to mapcache:=sync.  Fix from Nick Williams
858482794Sobrien	<Nick.Williams@msdw.com>.
858582794Sobrien
858682794Sobrien2000-01-20  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
858782794Sobrien
858882794Sobrien	* released snapshot am-utils-6.0.3s3
858982794Sobrien
859082794Sobrien	* minor port to i386-unknown-netbsd1.4.1
859182794Sobrien
859282794Sobrien	* amd/nfs_subr.c (nfsproc_getattr_2_svc): patch from Nick Williams
859382794Sobrien	<Nick.Williams@msdw.com> to fix (or reduce the incidence of) stale
859482794Sobrien	file handles when doing rapid mounts and umounts in succession
859582794Sobrien	such as "ls /vol/foo ; amq -u /vol/foo ; ls /vol/foo"
859682794Sobrien
859782794Sobrien2000-01-18  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
859882794Sobrien
859982794Sobrien	* minor port to i386-pc-bsdi4.1.
860082794Sobrien
860182794Sobrien2000-01-13  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
860282794Sobrien
860382794Sobrien	* libamu/wire.c (getwire_lookup): pass NULL as conf_file (2nd)
860482794Sobrien	argument to irs_gen_acc(), which was changed in bsdi 4.1.
860582794Sobrien
860682794Sobrien2000-01-12  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
860782794Sobrien
860882794Sobrien	* amd/get_args.c (get_args): don't use MNTTAB_FILE_NAME for
860982794Sobrien	systems with in-kernel mount tables unless this macro is defined
861082794Sobrien	(Solaris 8).
861182794Sobrien
861282794Sobrien2000-01-01  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
861382794Sobrien
861482794Sobrien	* ALL: bump copyright year to 2000.
861582794Sobrien
861682794Sobrien1999-12-16  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
861782794Sobrien
861882794Sobrien	* conf/mount/mount_svr4.c (mount_svr4): optionstr exists on
861982794Sobrien	solaris 7, but should not be used unless MAX_MNTOPT_STR also
862082794Sobrien	exists (solaris 8).
862182794Sobrien
862282794Sobrien	* doc/am-utils.texi (opts Option): document new mount option:
862382794Sobrien	optionstr.
862482794Sobrien
862582794SobrienFri Dec 10 01:31:53 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
862682794Sobrien
862782794Sobrien	* conf/trap/trap_svr4.h (MOUNT_TRAP): Pass mount option string to
862882794Sobrien	mount_svr4().
862982794Sobrien	(mount_svr4): Adapt prototype.
863082794Sobrien	* conf/mount/mount_svr4.c (mount_svr4): Pass them to kernel so
8631174294Sobrien	they are evaluated and show up in Solaris 8 in-kernel mnttab.
863282794Sobrien
863382794Sobrien	* aux/configure.in: Check for new Solaris 8 MS_OPTIONSTR mount(2)
8634174294Sobrien	option.
863582794Sobrien	* aux/acconfig.h (MNT2_GEN_OPT_OPTIONSTR): Provide template.
863682794Sobrien
863782794Sobrien1999-12-10  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
863882794Sobrien
863982794Sobrien	* released snapshot am-utils-6.0.3s2
864082794Sobrien
864182794Sobrien1999-12-09  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
864282794Sobrien
864382794Sobrien	* doc/am-utils.texi (opts Option): document noexec and nomnttab
864482794Sobrien	(new to Solaris 8).
864582794Sobrien
864682794Sobrien	* Makefile.am (EXTRA_DIST_CONF): include nfs_prot_sunos5_8.h in
864782794Sobrien	distribution.
864882794Sobrien
8649119679Smbr	* applied fixes from Rainer Orth for Solaris 8.
865082794Sobrien
865182794Sobrien	* libamu/wire.c (getwire): increment the cp pointer in the loop
865282794Sobrien	body, because the ioctl() inside the "for" loop will overwrite the
865382794Sobrien	ifr structure, thus not detecting all of the interfaces.  Bug
865482794Sobrien	reported and fixed by Amitha Perera <perera@cs.rpi.edu>.
865582794Sobrien
865682794SobrienThu Dec  9 19:09:38 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
865782794Sobrien
865882794Sobrien	* conf/mtab/mtab_svr4.c (unlockmnttab, lockmnttab): No-ops if
865982794Sobrien	MOUNT_TABLE_ON_FILE.
866082794Sobrien
866182794Sobrien	* amd/get_args.c (get_args): Initialize mnttab_file_name even for
866282794Sobrien	in-kernel mount table.  conf/mtab/mtab_svr4.c (read_mtab) depends
866382794Sobrien	on a non-NULL value.
866482794Sobrien
866582794Sobrien	* amd/info_ldap.c (get_ldap_timestamp): Don't peek into opaque
866682794Sobrien	LDAP structure to get error code, but use it directly.
866782794Sobrien	(amu_ldap_search): Likewise.
866882794Sobrien
866982794Sobrien	* conf/nfs_prot/nfs_prot_sunos5_7.h: Rip superfluous and wrong
867082794Sobrien	ldap support.
867182794Sobrien	* conf/nfs_prot/nfs_prot_sunos5_8.h: Likewise.
867282794Sobrien
867382794Sobrien	* conf/nfs_prot/nfs_prot_sunos5_8.h: New file, doesn't typedef
867482794Sobrien	nfsstat, already in <nfs/nfs.h>.
867582794Sobrien	* aux/macros/check_nfs_prot_headers.m4: Use it for all Solaris
867682794Sobrien	versions beyond 7.
867782794Sobrien	Allow for micro versions of SunOS 5.[67].
867882794Sobrien
867982794Sobrien	* aux/configure.in: Check for new Solaris 8 Beta Refresh
868082794Sobrien	MS_NOMNTTAB mount(2) option.
868182794Sobrien	* aux/macros/check_mnttab_location.m4: Use it to test for
868282794Sobrien	mntfs-based in-kernel mnttab.
868382794Sobrien
868482794Sobrien	* aux/macros/os_cflags.m4: Treat Solaris 8 and higher like 2.6/7.
868582794Sobrien
868682794Sobrien	* aux/macros/check_fs_headers.m4: Revert test for duplicate
8687174294Sobrien	objects.
868882794Sobrien	* aux/macros/check_fs_mntent.m4: Likewise
868982794Sobrien
869082794Sobrien	* aux/macros/HEADER: Fixed typo.
869182794Sobrien
869282794Sobrien	* include/am_defs.h: Likewise.
869382794Sobrien
869482794Sobrien1999-12-01  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
869582794Sobrien
869682794Sobrien	* aux/macros/*.m4: prepare for hpux-12 (assume same as hpux-11)
869782794Sobrien
869882794Sobrien1999-11-16  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
869982794Sobrien
870082794Sobrien	* BUGS: document glibc-2.1 nis file descriptor leak in yp_bind.
870182794Sobrien
870282794Sobrien	* amd/info_ldap.c (string2he): updated function which does not
870382794Sobrien	corrupt strings when called more than once.  Patch from
870482794Sobrien	JOHANN.PFEFFERL.JP@germany.agfa.com.
870582794Sobrien
870682794Sobrien1999-11-15  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
870782794Sobrien
870882794Sobrien	* MIRRORS (Asia): two new mirrors in Japan.
870982794Sobrien
871082794Sobrien1999-11-10  Erez Zadok  <ezk@kosh.cs.columbia.edu>
871182794Sobrien
871282794Sobrien	* doc/am-utils.texi: document new variables for ${uid} and ${gid}.
871382794Sobrien
871482794Sobrien	* amd/nfs_subr.c (nfsproc_lookup_2_svc): find the uid/gid of the
871582794Sobrien	last lookup from the RPC credentials.
871682794Sobrien
871782794Sobrien	* aux/configure.in: upped version-info to 4:0:2 because I've added
871882794Sobrien	a new interface to libamu.
871982794Sobrien
872082794Sobrien	* libamu/misc_rpc.c (getcreds): moved function from hlfsd to here,
872182794Sobrien	so it can be used by amd.
872282794Sobrien
872382794Sobrien	* amd/opts.c: new variables ${uid} and ${gid}.
872482794Sobrien
872582794Sobrien1999-10-15  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
872682794Sobrien
872782794Sobrien	* scripts/ctl-amd.in: add "status" command that tells you if amd
872882794Sobrien	is running on not (same output as RedHat scripts).
872982794Sobrien	Added start_msg and stop_msg targets as they are used on HPUX.
873082794Sobrien	reported by Jon Peatfield <J.S.Peatfield@damtp.cam.ac.uk>.
873182794Sobrien
873252894Sobrien1999-10-13  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
873352894Sobrien
873452894Sobrien	* released snapshot am-utils-6.0.3s1
873552894Sobrien
873652894Sobrien1999-10-12  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
873752894Sobrien
873852894Sobrien	* amd/amd.c (main): On AIX you must lower the stack size using
873952894Sobrien	ulimit() before calling plock.  Otherwise plock will reserve a lot
874052894Sobrien	of memory space based on your maximum stack size limit.  Since it
874152894Sobrien	is not easily possible to tell what should the limit be, I print a
874252894Sobrien	warning before calling plock(). See the manual pages for
874352894Sobrien	ulimit(1,3,4) on your AIX system.
874452894Sobrien
874552894Sobrien	* include/am_defs.h: define default extern for vsnprintf()
874652894Sobrien
874752894Sobrien	* aux/configure.in: check for extern definition for vsnprintf()
874852894Sobrien
874952894Sobrien1999-10-08  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
875052894Sobrien
875152894Sobrien	* amd/amfs_auto.c (amfs_auto_bgmount): patch from Nick Williams
875252894Sobrien	<njw@ms.com>.  SYMPTOMS: 'occasionally' sublinks do not point to
875352894Sobrien	the correct location, but to the top level of the mountpoint and
875452894Sobrien	an (error-hook) is seen being mounted in the log file. This causes
875552894Sobrien	things to Go Wrong(TM).
875652894Sobrien	CAUSE: When evaluating two locations which are requested
875752894Sobrien	'practically simultaneously', and the two locations resolve to the
875852894Sobrien	same NFS mountpoint (but different sublinks), the later request
875952894Sobrien	will be "deferred" and retried after wakeup when the first mount
876052894Sobrien	succeeds. To do this, it rewinds the options location string to
876152894Sobrien	re-evaluate the location when the mount is retried. However, it
876252894Sobrien	shouldn't rewind the options for two reasons: (a) the semantics of
876352894Sobrien	the map language say you shouldn't and (b) the NFS mount reference
876452894Sobrien	is not reset at the same time, meaning that on the retry it will
876552894Sobrien	have an options structure out-of-sync with the mount
876652894Sobrien	structure. The "shortcut" code when retrying the mount sees the
876752894Sobrien	mount structure is already filled in and does not fully evaluate
876852894Sobrien	the options structure.... so if the first location is not the one
876952894Sobrien	which ties in with the mountpoint (see ordering in the
877052894Sobrien	recreate-by), you're now well messed up.
877152894Sobrien
877252894Sobrien	* BUGS: mention aix4.3 plock() bug (memory usage blows up and
877352894Sobrien	plock fails)
877452894Sobrien
877552894Sobrien1999-10-07  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
877652894Sobrien
877752894Sobrien	* aux/GNUmakefile: certain files should be copied if they are
877852894Sobrien	newer, not also if they are bigger: install-sh, ltconfig,
877952894Sobrien	ltmain.sh, mdate-sh, missing, mkinstalldirs, and texinfo.tex.
878052894Sobrien
878152894Sobrien	* minor new port: i586-pc-linux-gnu-rh6.1 (RedHat Linux 6.1)
878252894Sobrien
878352894Sobrien1999-10-05  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
878452894Sobrien
878552894Sobrien	* aux/macros/check_nfs_prot_headers.m4: prepare for OSF-5.
878652894Sobrien
878752894Sobrien	* aux/macros/check_nfs_fh_dref.m4: prepare for Tru64, aka OSF-5.
878852894Sobrien
878952894Sobrien1999-09-30  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
879052894Sobrien
879152894Sobrien	*******************************************************************
879252894Sobrien	*** Released am-utils-6.0.2					***
879352894Sobrien	*******************************************************************
879452894Sobrien
879552894Sobrien1999-09-27  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
879652894Sobrien
879752894Sobrien	* conf/mount/mount_linux.c (mount_linux): print the updated mount
879852894Sobrien	flags.
879952894Sobrien
880052894Sobrien	* doc/am-utils.texi: document $full_os and $vendor.
880152894Sobrien
880252894Sobrien	* scripts/amd.conf-sample: examples of $full_os and $vendor.
880352894Sobrien
880452894Sobrien	* scripts/amd.conf.5: document $full_os and $vendor.
880552894Sobrien
880652894Sobrien	* amd/conf.c: add support for $full_os and $vendor.
880752894Sobrien
880852894Sobrien1999-09-26  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
880952894Sobrien
881052894Sobrien	* doc/am-utils.texi (netgrp Selector Function): don't give
881152894Sobrien	examples with old single '=' assignment variable.  Use foo:=bar.
881252894Sobrien
881352894Sobrien	* amd/amfs_auto.c (amfs_auto_bgmount): corectly indent long
881452894Sobrien	comment describing this complex function.
881552894Sobrien
881652894Sobrien	* doc/Makefile.am (alldocs): do install-ps last (because distiller
881752894Sobrien	is slow) and install-html next to last (because texi2html is also
881852894Sobrien	slow).
881952894Sobrien
882052894Sobrien	* amd/amd.8: Major fixes to the description of the option -t
882152894Sobrien	timeout.retransmit.
882252894Sobrien
882352894Sobrien	* doc/am-utils.texi: better description of "trace" debug option.
882452894Sobrien	amd -H (not -v) shows log_options and debug_options.  Major fixes
882552894Sobrien	to the description of amd -t timeout.retransmit, and the amd.conf
882652894Sobrien	parameters nfs_retransmit_counter and nfs_retry_interval.
882752894Sobrien
882852894Sobrien	* scripts/amd.conf.5: better description of "trace" debug option.
882952894Sobrien	amd -H (not -v) shows log_options and debug_options.  Major fixes
883052894Sobrien	to the description of the parameters nfs_retransmit_counter and
883152894Sobrien	nfs_retry_interval.
883252894Sobrien
883352894Sobrien1999-09-25  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
883452894Sobrien
883552894Sobrien	* doc/am-utils.texi (Automount Filesystem): cache:= is not a mount
883652894Sobrien	option, but a mount map option.
883752894Sobrien
883852894Sobrien	* libamu/xutil.c (switch_to_logfile): log the name of the log file
883952894Sobrien	we switched into, after the log file had been [re]opened.
884052894Sobrien
884152894Sobrien1999-09-24  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
884252894Sobrien
884352894Sobrien	* amd/mapc.c (mapc_reload_map): count and show the number of times
884452894Sobrien	a map was reloaded.  Only reload a map if its modify-time was
884552894Sobrien	updated.  But amq -f forced a reload no matter what.
884652894Sobrien
884752894Sobrien	* amd/amd.h: new flag to struct mnt_map to count number of times a
884852894Sobrien	map was reloaded.
884952894Sobrien
885052894Sobrien	* amd/mapc.c (mapc_reload_map): attempt to reload the map without
885152894Sobrien	losing current data by reloading into a temp copy, and switching
885252894Sobrien	the hashes round only if the reload was successful.  Patch from Jon
885352894Sobrien	Peatfield <J.S.Peatfield@damtp.cam.ac.uk>.
885452894Sobrien	(mapc_sync): mapc_reload_map() always succeeds.
885552894Sobrien
885651591Sobrien1999-09-22  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
885751591Sobrien
885852894Sobrien	* amd/info_ldap.c (amu_ldap_rebind): don't busy-loop trying to
885952894Sobrien	rebind to an LDAP server forever.  Try up to 10 times.
886052894Sobrien
886152894Sobrien	* fsinfo/fsi_lex.l (yyerror): rework code that will never happen
886252894Sobrien
886351591Sobrien	* released snapshot am-utils-6.0.2s2
886451591Sobrien
886551591Sobrien	* aux/configure.in: bumped library version-info to 3:2:1, since
886651591Sobrien	some libamu code got changed.
886751591Sobrien
886851591Sobrien	* libamu/xutil.c (real_plog): use vsnprintf, not vsprintf, which
886951591Sobrien	is better and more secure.  Fix from "David O'Brien"
887051591Sobrien	<obrien@NUXI.com>.
887151591Sobrien
887251591Sobrien	* aux/configure.in: check for vsnprintf.
887351591Sobrien
887451591Sobrien1999-09-21  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
887551591Sobrien
887651591Sobrien	* aux/macros/linux_headers.m4: use AC_MSG_ERROR.
887751591Sobrien
887851591Sobrien	* aux/macros/opt_{cppflags,ldflags,libs,amu_cflags}.m4: the ARG is
887951591Sobrien	not optional.  Make sure ARG is supplied else flag an error.
888051591Sobrien
888151591Sobrien1999-09-18  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
888251591Sobrien
888351591Sobrien	* minor port i386-unknown-freebsdelf3.3
888451591Sobrien
888551591Sobrien	* released snapshot am-utils-6.0.2s1
888651591Sobrien
888751591Sobrien1999-09-17  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
888851591Sobrien
888951591Sobrien	* aux/configure.in (AC_CHECK_FUNCS): check for getitimer().
889051591Sobrien
889151591Sobrien	* include/am_defs.h: extern definition for getitimer().
889251591Sobrien
889351591Sobrien	* aux/configure.in: use AC_CHECK_EXTERNS.  Look for getitimer()
889451591Sobrien	extern.
889551591Sobrien
889651591Sobrien	* aux/macros/check_extern.m4: define a simple AC_CHECK_EXTERNS
889751591Sobrien	that calls AC_CHECK_EXTERN in a loop.  This saves repeated code in
889851591Sobrien	configure.
889951591Sobrien
890051591Sobrien	* aux/macros/type_auth_create_gidlist.m4: AIX 4.x systems use
890151591Sobrien	'int' as the 5th arg to authunix_create().
890251591Sobrien
890351591Sobrien	* aux/macros/type_recvfrom_fromlen.m4: all AIX 4.x systems use a
890451591Sobrien	size_t for the 6th arg of recvfrom().
890551591Sobrien
890651591Sobrien	* aux/macros/os_cflags.m4: define _XOPEN_EXTENDED_SOURCE for
890751591Sobrien	aix4.x systems.
890851591Sobrien
890951591Sobrien	* libamu/mount_fs.c (print_nfs_args): cast some values to int, to
891051591Sobrien	avoid gcc -Wall errors.
891151591Sobrien
891251591Sobrien	* scripts/expn.in: use sockaddr_in(), not pack() to correctly fill
891351591Sobrien	in a struct sockaddr_in.  On Solaris x86 hosts, using pack()
891451591Sobrien	results in byte-misaligned values.   Bug fix from Jeffrey C Honig
891551591Sobrien	<jch@BSDI.COM>.
891651591Sobrien
891751591Sobrien	* libamu/mount_fs.c (compute_automounter_mount_flags): turn on
891851591Sobrien	automntfs (ignore on bsdi-4.1) flag.
891951591Sobrien	(compute_automounter_nfs_args): ditto.
892051591Sobrien
892151591Sobrien	* aux/acconfig.h: add new flag for automntfs (ignore)
892251591Sobrien
892351591Sobrien	* aux/configure.in: check for new automntfs flag (bsdi-4.1).
892451591Sobrien
892551591Sobrien1999-09-14  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
892651591Sobrien
892751591Sobrien	* MIRRORS: added new site in Germany.  Updated status of umn.edu
892851591Sobrien	and ferginc.com, who may no longer be mirroring am-utils.
892951591Sobrien
893051292Sobrien1999-09-08  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
893151292Sobrien
893251292Sobrien	*******************************************************************
893351292Sobrien	*** Released am-utils-6.0.1					***
893451292Sobrien	*******************************************************************
893551292Sobrien
893651292Sobrien1999-09-08  Erez Zadok  <ezk@cs.columbia.edu>
893751292Sobrien
893851292Sobrien	* aux/macros/mount_headers.m4: bsdi-2.1 needs MAXQUOTAS and struct
893951292Sobrien	netexport defined.
894051292Sobrien
894151292Sobrien	* aux/macros/try_compile_anyfs.m4: bsdi-2.1 needs MAXQUOTAS and
894251292Sobrien	struct netexport defined.
894351292Sobrien
894451292Sobrien1999-09-07  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
894551292Sobrien
894651292Sobrien	* aux/macros/check_field.m4 (ac_upcase_var_name): include
894751292Sobrien	<ifaddrs.h> so we can detect fields within struct ifaddrs.
894851292Sobrien
894951292Sobrien	* libamu/wire.c (getwire): bsdi-2.1 uses a second arg to
895051292Sobrien	getifaddrs() and struct ifaddrs has no ifa_next field.
895151292Sobrien
895251292Sobrien	* aux/configure.in: check if 'struct ifaddrs' has a field
895351292Sobrien	ifa_next.
895451292Sobrien
895551292Sobrien	* include/amq_defs.h (AMQ_STRLEN): double size of amq string
895651292Sobrien	length to 2048 bytes.
895751292Sobrien
895851292Sobrien	* conf/nfs_prot/nfs_prot_netbsd1_4.h: include several more nfs
895951292Sobrien	header files and ufs/ufs/ufsmount.h.  Bug reported by <Christos
896051292Sobrien	Zoulas> christos@zoulas.com.
896151292Sobrien
896251292Sobrien	* aux/macros/try_compile_anyfs.m4: include <ufs/ufs/ufsmount.h>.
896351292Sobrien	Bug reported by <Christos Zoulas> christos@zoulas.com.
896451292Sobrien
896551292Sobrien	* aux/macros/mount_headers.m4: include <ufs/ufs/ufsmount.h>
896651292Sobrien
896751292Sobrien1999-09-06  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
896851292Sobrien
896951292Sobrien	* libamu/xutil.c (expand_error): use strerror if available instead
897051292Sobrien	of sys_errlist.  Bug reported by <Christos Zoulas>
897151292Sobrien	christos@zoulas.com.
897251292Sobrien
897351292Sobrien	* hlfsd/hlfsd.c (fatal): use strerror if available instead of
897451292Sobrien	sys_errlist.
897551292Sobrien
897651292Sobrien	* amq/amq.c (show_mi): use strerror if available instead of
897751292Sobrien	sys_errlist.
897851292Sobrien
897951292Sobrien	* aux/macros/check_nfs_prot_headers.m4: make sure netbsd1.4
898051292Sobrien	nfs_prot header is used for any future (1.5 etc.) netbsd systems.
898151292Sobrien
898251292Sobrien	* amq/pawd.c (find_mt): check for type nfsl as well.  Fix from
898351292Sobrien	"Andrew J. Korty" <ajk@purdue.edu>
898451292Sobrien
898551292Sobrien1999-08-29  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
898651292Sobrien
898751292Sobrien	* doc/am-utils.texi (Supported Platforms): updates for redhat
898851292Sobrien	systems.
898951292Sobrien
899051292Sobrien	* INSTALL: updates for redhat systems.
899151292Sobrien
899251292Sobrien	* libamu/wire.c (getwire_lookup): spell "succeeded" correctly
899351292Sobrien
899451292Sobrien1999-08-28  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
899551292Sobrien
899651292Sobrien	* scripts/ctl-amd.in: sleep 1 second between killing amd and
899751292Sobrien	restarting it, because amq may respond that amd is down, where in
899851292Sobrien	fact it is still trying to unmount itself after unmapping itself
899951292Sobrien	from the portmapper.
900051292Sobrien
900151292Sobrien	* aux/config.guess.long: new script to print long version of
900251292Sobrien	config.guess output.
900351292Sobrien
900451292Sobrien	* buildall (host_alias): use long version of config.guess.
900551292Sobrien
900651292Sobrien1999-08-27  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
900751292Sobrien
900851292Sobrien	* scripts/ctl-{amd,hlfsd}.in: update RH tags for start/stop
900951292Sobrien	scripts.
901051292Sobrien
901151292Sobrien1999-08-24  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
901251292Sobrien
901351292Sobrien	* released snapshot am-utils-6.0.1s11
901451292Sobrien
901551292Sobrien	* libamu/xutil.c (expand_error): make sure expanding the string
901651292Sobrien	with textual version of errno doesn't overrun the 1024 bytes
901751292Sobrien	buffer.
901851292Sobrien	(real_plog): null terminate msg, just in case.
901951292Sobrien
902051292Sobrien	* amq/amq.c (main): don't getopt -M option and don't process it
902151292Sobrien	unless ENABLE_AMQ_MOUNT is on.
902251292Sobrien
902351292Sobrien	* amd/amq_svc.c (amq_program_1): all code that relates to amq -M
902451292Sobrien	is conditional on #ifdef ENABLE_AMQ_MOUNT.
902551292Sobrien
902651292Sobrien	* amd/amq_subr.c: remove amqproc_mount_1_svc() function invoked
902751292Sobrien	when amq -M code is disabled.  Not taking any chances.
902851292Sobrien
902951292Sobrien1999-08-23  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
903051292Sobrien
903151292Sobrien	* released snapshot am-utils-6.0.1s10
903251292Sobrien
903351292SobrienSun Aug 22 16:18:59 1999  Erez Zadok  <ezk@subzero.cs.columbia.edu>
903451292Sobrien
903551292Sobrien	* libamu/wire.c (getwire_lookup): if getnetbyaddr failed (e.g., on
903651292Sobrien	128.59.16.0), try to shift the network out of zeros (e.g.,
903751292Sobrien	128.59.16) and try again.  Irix 6.4 requires short network
903851292Sobrien	numbers.
903951292Sobrien
904051292Sobrien1999-08-22  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
904151292Sobrien
904251292Sobrien	* libamu/wire.c (getwire_lookup): correctly compute subnet using
904351292Sobrien	netmask.
904451292Sobrien
904551292Sobrien	* libamu/mount_fs.c (compute_automounter_nfs_args): require that
904651292Sobrien	Amd's own NFS mounts use reserved ports (if possible).  IP packet
904751292Sobrien	security fix from Jeffrey C Honig <jch@BSDI.COM>.
904851292Sobrien
904951292Sobrien	* conf/transp/transp_tli.c (create_autofs_service): use correct
905051292Sobrien	autofs_port.  IP packet security fix from Jeffrey C Honig
905151292Sobrien	<jch@BSDI.COM>.
905251292Sobrien
905351292Sobrien	* conf/transp/transp_sockets.c (bindnfs_port): remove unnecessary
905451292Sobrien	function.  IP packet security fix from Jeffrey C Honig
905551292Sobrien	<jch@BSDI.COM>.
905651292Sobrien	(create_nfs_service): use bind_resv_port() directly.  ensure that
905751292Sobrien	privileged ports are used.  IP packet security fix from Jeffrey C
905851292Sobrien	Honig <jch@BSDI.COM>.
905951292Sobrien
906051292Sobrien	* amd/nfs_prot_svc.c (nfs_program_2): verify that requests come
906151292Sobrien	from reserved ports and from a local IP address.  IP packet
906251292Sobrien	security fix from Jeffrey C Honig <jch@BSDI.COM>.
906351292Sobrien
906451292Sobrien	* amd/amq_subr.c (ok_security): use IPPORT_RESERVED, instead of
906551292Sobrien	hard-coded 1024.  IP packet security fix from Jeffrey C Honig
906651292Sobrien	<jch@BSDI.COM>.
906751292Sobrien	(amqproc_mount_1_svc): provide information on the caller making an
906851292Sobrien	amq -M request.  IP packet security fix from Jeffrey C Honig
906951292Sobrien	<jch@BSDI.COM>.
907051292Sobrien
907151292Sobrien	* amd/map.c (free_map_if_success): If the program doing an unmount
907251292Sobrien	of a program filesystem fails, amd tries to interpret the return
907351292Sobrien	code as an errno.  Fix from Jeffrey C Honig <jch@BSDI.COM>.
907451292Sobrien
907551292Sobrien	* amd/info_nis.c (determine_nis_domain): don't always print
907651292Sobrien	warning about NIS domain name not being set, even if NIS is not in
907751292Sobrien	use.
907851292Sobrien
907951292Sobrien1999-08-21  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
908051292Sobrien
908151292Sobrien	* amd/info_ldap.c (get_ldap_timestamp): initialize variable err.
908251292Sobrien	(amu_ldap_search): initialize variable err.
908351292Sobrien
908451292Sobrien1999-08-16  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
908551292Sobrien
908651292Sobrien	* libamu/wire.c: written using getifaddrs() for BSD systems,
908751292Sobrien	contributed by BSDI, Jeffrey C Honig <jch@BSDI.COM>).
908851292Sobrien
908951292Sobrien1999-08-15  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
909051292Sobrien
909151292Sobrien	* include/am_utils.h (SALLOC): a simple macro to allocate N bytes.
909251292Sobrien
909351292Sobrien	* aux/configure.in: check for irs.h and ifaddrs.h.
909451292Sobrien	Increase libamu.so --version-info to 3:1:1 since we've changed the
909551292Sobrien	source code for the library.
909651292Sobrien	Check for getifaddrs() function.
909751292Sobrien
909851292Sobrien1999-08-14  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
909951292Sobrien
910051292Sobrien	* libamu/mount_fs.c (print_nfs_args): print fields namlen and
910151292Sobrien	bsize if they exist.
910251292Sobrien
910351292Sobrien	* conf/mount/mount_linux.c (mount_linux): set nfs_args_t->namlen
910451292Sobrien	and ->bsize fields correctly, if those fields exist.  This is a
910551292Sobrien	bug in that amd neglected to set these fields, but told the
910651292Sobrien	kernel it is mounting the nfs_args_t structure using mount version
910751292Sobrien	3 (which requires both bsize and namlen fields).
910851292Sobrien
910951292Sobrien	* aux/configure.in: test for two new nfs_args_t fields (used on
911051292Sobrien	newer linux with mount versions 2 and 3): bsize and namlen.
911151292Sobrien
911251292Sobrien	* doc/am-utils.texi (netgrpd Selector Function): document new
911351292Sobrien	selector function.
911451292Sobrien
911551292Sobrien	* amd/opts.c (f_netgrpd): new amd map function netgrpd(ARG) to
911651292Sobrien	test if the current host (fully-qualified name) is in the ARG host
911751292Sobrien	netgroup.  The netgrp() function uses the short form of a host
911851292Sobrien	name.  Patch from Christophe Kalt <Christophe-Kalt@deshaw.com>.
911951292Sobrien
912051292Sobrien	* doc/am-utils.texi (automount2amd): document new script.
912151292Sobrien
912251292Sobrien	* scripts/Makefile.am: create, install, and distribute
912351292Sobrien	automount2amd perl script and its man page.
912451292Sobrien
912551292Sobrien	* scripts/automount2amd.8: new man page for automount2amd.
912651292Sobrien
912751292Sobrien	* scripts/automount2amd.in: new file, contributed a in 1993 by
912851292Sobrien	Mike Walker <mike@tab00.larc.nasa.gov>.  Fixed to use addopts for
912951292Sobrien	any automount map options specified.
913051292Sobrien
913151292Sobrien1999-08-09  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
913251292Sobrien
913351292Sobrien	* released snapshot am-utils-6.0.1s9
913451292Sobrien
913551292Sobrien1999-08-09  Erez Zadok  <ezk@beetle.mcl.cs.columbia.edu>
913651292Sobrien
913751292Sobrien	* amd/amfs_auto.c (DOT_DOT_COOKIE): set the NFS cookie of '..' to
913851292Sobrien	1.
913951292Sobrien	(amfs_auto_readdir): use DOT_DOT_COOKIE instead of (u_int)~0.
914051292Sobrien	(amfs_auto_readdir_browsable): use DOT_DOT_COOKIE instead of
914151292Sobrien	(u_int)~0.
914251292Sobrien
914351292Sobrien	* amd/mapc.c (make_entry_chain): NFS cookies should be
914451292Sobrien	monotonically increasing, because Linux 2.3 expects that, even
914551292Sobrien	though it is not in the spec (RFC-1094) for NFS V2.
914651292Sobrien
914751292Sobrien1999-08-06  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
914851292Sobrien
914951292Sobrien	* aux/macros/check_lib_funcs.m4: removed unused macro.
915051292Sobrien
915151292Sobrien	* aux/macros/linux_headers.m4: new macro to ensure that linux
915251292Sobrien	kernel headers match running kernel version.
915351292Sobrien
915451292Sobrien	* aux/acconfig.h: define HOST_HEADER_VERSION so we can check if
915551292Sobrien	amd is configured on linux hosts that run one kernel but have
915651292Sobrien	headers for a different version.
915751292Sobrien
915851292Sobrien	* amd/info_nis.c (nis_isup, nis_search, nis_init): fixes for the
915951292Sobrien	logic which uses nis_isup and has_yp_order.  Make sure it is used
916051292Sobrien	correctly , esp. for NIS+ in NIS-compatibility mode.  Bug fix from
916151292Sobrien	Peter Breitenlohner <peb@mppmu.mpg.de>.
916251292Sobrien
916351292Sobrien	* include/am_defs.h: fix conflicts on linux 2.2 systems with older
916451292Sobrien	libc5.  Bug fix from Peter Breitenlohner <peb@mppmu.mpg.de>.
916551292Sobrien
916651292Sobrien	* scripts/lostaltmail.in: use sockaddr_in(), not pack() to
916751292Sobrien	correctly fill in a struct sockaddr_in.  On Solaris x86 hosts,
916851292Sobrien	using pack() results in byte-misaligned values.
916951292Sobrien
917051292Sobrien1999-08-02  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
917151292Sobrien
917251292Sobrien	* conf/mtab/mtab_aix.c (mnt_dup): add support for nfs3
917351292Sobrien	mounting, as per Dale Talcott <aeh@quest.cc.purdue.edu>.  Also use
917451292Sobrien	better macros for case statement.
917551292Sobrien
917651292Sobrien	* conf/nfs_prot/nfs_prot_sunos5_7.h: don't include ldap structures
917751292Sobrien	unless ldap is actually available.
917851292Sobrien
917951292Sobrien	* use updated config.guess and config.sub.  Use newer automake
918051292Sobrien	that fixes problems with distributing optional libamu files
918151292Sobrien	(clnt_sperrno.c, hasmntopt.c, strcasecmp.c, strdup.c, strstr.c,
918251292Sobrien	and ualarm.c)
918351292Sobrien
918451292Sobrien1999-07-19  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
918551292Sobrien
918651292Sobrien	* minor port i386-unknown-openbsd2.5
918751292Sobrien
918851292Sobrien1999-07-17  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
918951292Sobrien
919051292Sobrien	* minor ports to freebsdelf 3.[0-2] and 4.0 completed
919151292Sobrien
919251292Sobrien	* aux/macros/check_nfs_prot_headers.m4: support freebsdelf
919351292Sobrien
919451292Sobrien	* aux/macros/check_nfs_socket_connection.m4: support freebsdelf
919551292Sobrien
919651292Sobrien1999-06-24  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
919751292Sobrien
919851292Sobrien	* released snapshot am-utils-6.0.1s8
919951292Sobrien
920051292Sobrien1999-06-23  Erez Zadok  <ezk@beetle.mcl.cs.columbia.edu>
920151292Sobrien
920251292Sobrien	* include/am_defs.h: avoid various header conflicts on
920351292Sobrien	RedHat/Linux 6.0 and kernels 2.2.10 or newer.
920451292Sobrien
920551292Sobrien	* aux/configure.in: look for <db1/ndbm.h> (RedHat/Linux 6.0 and
920651292Sobrien	kernel 2.2.10)
920751292Sobrien
920851292Sobrien	* amd/amfs_program.c (amfs_program_exec): make sure logfp is
920951292Sobrien	initialized dynamically to stderr if needed.
921051292Sobrien
921151292Sobrien	* libamu/xutil.c (dplog): make sure logfp is initialized
921251292Sobrien	dynamically to stderr if needed.
921351292Sobrien	(plog): ditto.
921451292Sobrien
921551292Sobrien	* amd/amfs_program.c (amfs_program_exec): set logfp to stderr if
921651292Sobrien	not initialized.
921751292Sobrien
921851292Sobrien	* libamu/xutil.c: don't initialize logfp statically to stderr,
921951292Sobrien	because on RedHat/Linux 6.0 (kernel 2.2.10) stderr can no longer
922051292Sobrien	be manipulated like a variable.
922151292Sobrien
922251292Sobrien	* include/am_defs.h: avoid more conflicts between <linux/fs.h> and
922351292Sobrien	<sys/mount.h> on 2.2 linux kernels.
922451292Sobrien	include <db1/ndbm.h> as needed (RedHat/Linux 6.0)
922551292Sobrien
922651292Sobrien1999-04-20  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
922751292Sobrien
922851292Sobrien	* all Makefile.am: use AMU_NFS_PROT_HEADER (not *_HEADERS)
922951292Sobrien
923051292Sobrien	* aux/macros/check_nfs_prot_headers.m4 (AMU_NFS_PROT_HEADER):
923151292Sobrien	renamed AC_SUBST name from *_HEADERS to *_HEADER so that automake
923251292Sobrien	won't attempt to add it to the header files to distribute.
923351292Sobrien
923451292Sobrien1999-04-19  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
923551292Sobrien
923651292Sobrien	* aux/GNUmakefile: invoke aclocal with new --altdir flag.
923751292Sobrien
923851292Sobrien1999-04-16  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
923951292Sobrien
924051292Sobrien	* minor new port: i386-unknown-netbsd1.4 (ALPHA)
924151292Sobrien
924251292Sobrien	* aux/macros/check_field.m4: no need to include <cdfs/cdfsmount.h>
924351292Sobrien	and <isofs/cd9660/cd9660_mount.h> because they are also included
924451292Sobrien	from MOUNT_HEADERS.  Causes multiple inclusion of unprotected
924551292Sobrien	headers on netbsd-1.4_ALPHA.
924651292Sobrien
924751292Sobrien1999-04-15  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
924851292Sobrien
924951292Sobrien	* aux/macros/extern_sys_errlist.m4 (pattern): netbsd-1.4_ALPHA's
925051292Sobrien	sys_errlist extern doesn't end with [].
925151292Sobrien
925251292Sobrien	* aux/macros/check_nfs_prot_headers.m4: netbsd 1.4 support.
925351292Sobrien
925451292Sobrien1999-04-11  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
925551292Sobrien
925651292Sobrien	* newer automake wants texinfo.tex to be in aux/ not doc/
925751292Sobrien
925851292Sobrien1999-03-30  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
925951292Sobrien
926051292Sobrien	* amd/conf_parse.y: alloca support.
926151292Sobrien
926251292Sobrien	* fsinfo/fsi_gram.y: alloca support.
926351292Sobrien
926451292Sobrien	* libamu/Makefile.am (libamu_la_LIBADD): compile alloca.o if
926551292Sobrien	needed.
926651292Sobrien
926751292Sobrien	* aux/configure.in: test for alloca support.  Needed because bison
926851292Sobrien	generates parsers that use alloca, and hpux9 does have alloca and
926951292Sobrien	its /bin/cc doesn't support it builtin (the way gcc does).
927051292Sobrien
927151292Sobrien	* libamu/alloca.c: new file, needed on hpux9 with /bin/cc.  Taken
927251292Sobrien	verbatim from bison-1.25.
927351292Sobrien
927451292Sobrien	* include/am_defs.h: fixed typo #errir -> #error
927551292Sobrien
927651292Sobrien	* released snapshot am-utils-6.0.1s7
927751292Sobrien
927851292Sobrien	* README.y2k: more information about am-utils' compatibility, from
927951292Sobrien	Paul Balyoz <pbalyoz@sedona.ch.intel.com>.
928051292Sobrien
928151292Sobrien	* scripts/lostaltmail.in (Splice_in_resent_headers): ensure Y2K
928251292Sobrien	compliant format.  Patch from Paul Balyoz
928351292Sobrien	<pbalyoz@sedona.ch.intel.com>
928451292Sobrien
928551292Sobrien	* doc/am-utils.texi (Supported Platforms): hpux10.20 could have
928651292Sobrien	nfs v.3 support (with some vendor patches), but it is turned off.
928751292Sobrien
928851292Sobrien	* aux/macros/os_cflags.m4: use ansi compiler options on hpux.
928951292Sobrien
929051292Sobrien	* conf/nfs_prot/nfs_prot_hpux.h: Turn off NFS V.3 support to avoid
929151292Sobrien	confusing am-utils.  10.20 with some patches has incomplete
929251292Sobrien	support.  Patch from Jon Peatfield
929351292Sobrien	<J.S.Peatfield@damtp.cam.ac.uk>.
929451292Sobrien
929551292Sobrien1999-03-24  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
929651292Sobrien
929751292Sobrien	* minor port i386-pc-bsdi4.0.1
929851292Sobrien
929951292Sobrien1999-03-20  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
930051292Sobrien
930151292Sobrien	* doc/am-utils.texi (Supported Platforms): add forgotten listing
930251292Sobrien	for powerpc-linux.
930351292Sobrien
930451292Sobrien1999-03-18  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
930551292Sobrien
930651292Sobrien	* scripts/amd.conf.5: fix typo.  From Jeffrey C Honig
930751292Sobrien	<jch@BSDI.COM>.
930851292Sobrien
930951292Sobrien	* doc/am-utils.texi: document iso9660 options norrip, gens, and
931051292Sobrien	extatt.
931151292Sobrien	(opts Option): documented dumbtimr and noauto options.  From
931251292Sobrien	Jeffrey C Honig <jch@BSDI.COM>.
931351292Sobrien
931451292Sobrien	* include/am_compat.h: define default strings for options norrip,
931551292Sobrien	gens, and extatt.
931651292Sobrien
931751292Sobrien	* amd/ops_cdfs.c (mount_cdfs): support options norrip, gens, and
931851292Sobrien	extatt.
931951292Sobrien
932051292Sobrien	* aux/macros/mount_headers.m4: also include
932151292Sobrien	<isofs/cd9660/cd9660_mount.h> as needed.
932251292Sobrien
932351292Sobrien	* aux/configure.in: check for isofs mount options for bsdi4:
932451292Sobrien	norrip, gens, and extatt.  Reported by Jeffrey C Honig
932551292Sobrien	<jch@BSDI.COM>.
932651292Sobrien
932751292Sobrien	* aux/macros/check_mnt2_cdfs_opt.m4: check for ISOFSMNT_* flags
932851292Sobrien	(bsdi4).
932951292Sobrien
933051292Sobrien1999-03-17  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
933151292Sobrien
933251292Sobrien	* conf/nfs_prot/nfs_prot_freebsd3.h: ditto.
933351292Sobrien
933451292Sobrien	* conf/nfs_prot/nfs_prot_bsdi3.h: include <ufs/ufs/ufsmount.h>,
933551292Sobrien	for bsdi4, as per Jeffrey C Honig <jch@BSDI.COM>.
933651292Sobrien
933751292Sobrien1999-03-15  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
933851292Sobrien
933951292Sobrien	* get latest copies of config.guess, config.sub, ltconfig, and
934051292Sobrien	ltmain.sh from libtool-1.2f.
934151292Sobrien
934251292Sobrien	* all Makefile.am: don't use continuation lines (using \) for
934351292Sobrien	short lists of files.
934451292Sobrien
934551292Sobrien	* libamu/Makefile.am (DISTCLEANFILES): make distclean should
934651292Sobrien	remove mountutil.c, mtabutil.c, transputil.c, and umount_fs.c.
934751292Sobrien	Reported by Jeffrey C Honig <jch@BSDI.COM>.
934851292Sobrien
934951292Sobrien	* fixmount/Makefile.am (DISTCLEANFILES): make distclean should
935051292Sobrien	remove checkmount.c.  Reported by Jeffrey C Honig <jch@BSDI.COM>.
935151292Sobrien
935251292Sobrien	* Makefile.am (DISTCLEANFILES): make distclean should remove
935351292Sobrien	amu_nfs_prot.h, config.cache.old, and dbgcf.h.  Reported by
935451292Sobrien	Jeffrey C Honig <jch@BSDI.COM>.
935551292Sobrien
935651292Sobrien1999-03-13  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
935751292Sobrien
935851292Sobrien	* released snapshot am-utils-6.0.1s6
935951292Sobrien
936051292Sobrien1999-03-12  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
936151292Sobrien
936251292Sobrien	* INSTALL: document freebsdelf.
936351292Sobrien
936451292Sobrien	* doc/am-utils.texi (Supported Platforms): document freebsdelf.
936551292Sobrien
936651292Sobrien1999-03-08  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
936751292Sobrien
936851292Sobrien	* minor new ports: i386-unknown-freebsdelf3.1 and
936951292Sobrien	i386-unknown-freebsdelf4.0
937051292Sobrien
937151292Sobrien	* aux/macros/check_nfs_prot_headers.m4: freebsd4 support.
937251292Sobrien
937351292Sobrien	* aux/macros/check_nfs_socket_connection.m4: freebsd4 support.
937451292Sobrien
937551292Sobrien	* aux/macros/check_nfs_fh_dref.m4: freebsd4 support.
937651292Sobrien
937751292Sobrien	* amd/opts.c (eval_opts): changed log level of "executing
937851292Sobrien	negated..." message from USER to INFO, as per Guntram Wolski
937951292Sobrien	<gwolsk@sei.com>.
938051292Sobrien
938151292Sobrien1999-02-17  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
938251292Sobrien
938351292Sobrien	* */Makefile.am (LDADD): force linking against an installed
938451292Sobrien	libamu.{a,so}.
938551292Sobrien
938651292Sobrien	* doc/am-utils.texi (addopts Option): document remopts interaction
938751292Sobrien	with addopts.
938851292Sobrien
938951292Sobrien	* amd/am_ops.c (ops_match): if addopts are specified, apply them
939051292Sobrien	to the value of remopts as well as opts.
939151292Sobrien
939251292Sobrien	* amd/ops_nfs.c (mount_nfs_fh): tell users when remopts are used.
939351292Sobrien
939451292Sobrien1999-02-05  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
939551292Sobrien
939651292Sobrien	* released snapshot am-utils-6.0.1s5
939751292Sobrien
939851292Sobrien	* conf/mount/mount_linux.c (mount_linux): set default nfs_args
939951292Sobrien	options for ac{reg,dir}{min,man} as per the mount-2.8a package,
940051292Sobrien	but only if noac option was not used.
940151292Sobrien
940251292Sobrien1999-02-05  Erez Zadok  <ezk@retro.cs.columbia.edu>
940351292Sobrien
940451292Sobrien	* conf/mount/mount_linux.c (mount_linux): print nfs_args again
940551292Sobrien	since it was updated.
940651292Sobrien	(mount_linux): use 4KB for NFS rsize/wsize on 2.1.0 linux kernels
940751292Sobrien	and newer.  Bug was found by Neil Conway
940851292Sobrien	<nconway.list@ukaea.org.uk>
940951292Sobrien
941051292Sobrien1999-02-04  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
941151292Sobrien
941251292Sobrien	* released snapshot am-utils-6.0.1s4
941351292Sobrien
941451292Sobrien1999-02-03  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
941551292Sobrien
941651292Sobrien	* amq/amq.c (main): don't list -M as a valid amq option unless
941751292Sobrien	configure'd with --enable-amq-mount.
941851292Sobrien
941951292SobrienWed Feb  3 18:11:18 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
942051292Sobrien
942151292Sobrien	* amd/nfs_start.c (amd_use_autofs): Define.
942251292Sobrien	(mount_automounter): Create autofs service listener only if
942351292Sobrien	necessary to avoid unnecessary clashes with e.g. automountd.
942451292Sobrien
942551292Sobrien	* amd/amd.h (amd_use_autofs): Declare.
942651292Sobrien
942751292Sobrien	* amd/conf.c (gopt_mount_type): Set amd_use_autofs.
942851292Sobrien	(ropt_mount_type): Likewise.
942951292Sobrien
943051292Sobrien1999-02-02  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
943151292Sobrien
943251292Sobrien	* aux/macros/check_mnt2_nfs_opt.m4:: ditto
943351292Sobrien
943451292Sobrien	* aux/macros/check_mnt2_cdfs_opt.m4: ditto
943551292Sobrien
943651292Sobrien	* aux/macros/check_mnt2_gen_opt.m4: ditto
943751292Sobrien
943851292Sobrien	* aux/macros/check_mnttab_opt.m4: new macro in this file to loop
943951292Sobrien	over AC_CHECK_MNTTAB_OPT.  Reduces size of configure script a lot.
944051292Sobrien
944151292Sobrien	* conf/nfs_prot/nfs_prot_netbsd1_3.h: include nfs/rpcv2.h,
944251292Sobrien	nfs/nfs.h and nfs/nfsmount.h if they exist.  Patch from
944351292Sobrien	christos@zoulas.com (Christos Zoulas).
944451292Sobrien
944551292Sobrien	* amd/info_hesiod.c: some forward declarations.  Patch from
944651292Sobrien	christos@zoulas.com (Christos Zoulas).
944751292Sobrien
944851292Sobrien1999-01-28  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
944951292Sobrien
945051292Sobrien	* libamu/mount_fs.c (compute_nfs_args): don't turn on/off noconn
945151292Sobrien	option if it was already in that state.  Patch from David
945251292Sobrien	Wolfskill <dhw@whistle.com>.
945351292Sobrien
945451292Sobrien1999-01-20  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
945551292Sobrien
945651292Sobrien	* aux/configure.in: automake nowadays supports LTLIBOBJS (but not
945751292Sobrien	LTALLOCA yet).  Substitute value of LIBTOOL_DEPS for libtool
945851292Sobrien	rebuild make rules.
945951292Sobrien
946051292Sobrien	* Makefile.am: new rules to remake libtool (maintainers only)
946151292Sobrien
946251292Sobrien	* amd/amfs_toplvl.c (mount_amfs_toplvl): print generic mount flags
946351292Sobrien	if -D trace was used.
946451292Sobrien
946551292Sobrien1999-01-18  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
946651292Sobrien
946751292Sobrien	* buildall: all if statements should have an else clause because
946851292Sobrien	of Ultrix's /bin/sh.
946951292Sobrien
947051292Sobrien1999-01-15  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
947151292Sobrien
947251292Sobrien	* amq/amq.c: removed dummy variables.
947351292Sobrien
947451292Sobrien	* amq/pawd.c: removed dummy variable.s
947551292Sobrien
947651292Sobrien	* fixmount/fixmount.c (usage): removed dummy variables.
947751292Sobrien
947851292Sobrien	* fsinfo/fsinfo.c: removed dummy variables.
947951292Sobrien
948051292Sobrien	* hlfsd/hlfsd.c: removed dummy variables.
948151292Sobrien
948251292Sobrien	* wire-test/wire-test.c: removed dummy variables.
948351292Sobrien
948451292Sobrien	* mk-amd-map/mk-amd-map.c: removed dummy variables.
948551292Sobrien
948651292Sobrien	* doc/texinfo.tex: updates from GNU mirror.
948751292Sobrien
948851292Sobrien	* aux/GNUmakefile (../doc/texinfo.tex): new rule to update
948951292Sobrien	doc/texinfo.tex from GNU mirror.
949051292Sobrien
949151292Sobrien	* released snapshot am-utils-6.0.1s3
949251292Sobrien
949351292Sobrien	* Makefile.am (install-snapshot): better snapshot and new
949451292Sobrien	install-snapshot and test-snapshot rules (maintainer).
949551292Sobrien
949651292Sobrien	* amd/info_ldap.c (amu_ldap_init): don't run STREQ if one of the
949751292Sobrien	args may be NULL.
949851292Sobrien	Some dlog() entries were not enclosed in #ifdef DEBUG.  Fix from
949951292Sobrien	Bill Paul <wpaul@ctr.columbia.edu>
950051292Sobrien
950151292Sobrien1999-01-13  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
950251292Sobrien
950351292Sobrien	* check for experimental generic 'ignore' mount flag on freebsd3.
950451292Sobrien
950551292Sobrien	* Update library -version-info to 3:0:1 (will result in 2.1.0 .so
950651292Sobrien	version, which is backwards compatible with older versions.)  Only
950751292Sobrien	one new interface was added to libamu.
950851292Sobrien
950951292Sobrien	* amd/amfs_toplvl.c (mount_amfs_toplvl): add generic mount flags
951051292Sobrien	that are specific to automounter mounts.
951151292Sobrien
951251292Sobrien	* aux/configure.in: update libamu.so age and revision since a new
951351292Sobrien	interface was added to libamu/mount_fs.c
951451292Sobrien	(compute_automounter_mount_flags).
951551292Sobrien
951651292Sobrien	* libamu/mount_fs.c (compute_automounter_mount_flags): new
951751292Sobrien	function to compute generic mount flags that are specific to mount
951851292Sobrien	points only.
951951292Sobrien
952051292Sobrien	* aux/{configure.in,acconfig.h}: add support for generic mount
952151292Sobrien	entry ignore option.
952251292Sobrien
952351292Sobrien	* released snapshot am-utils-6.0.1s2
952451292Sobrien
952551292Sobrien	* amd/info_ldap.c (get_ldap_timestamp): dlog format fixes.
952651292Sobrien
952751292Sobrien	* libamu/mount_fs.c (print_nfs_args): solaris 2.7 changed format
952851292Sobrien	of knc_semantics from u_long to u_int.
952951292Sobrien
953051292Sobrien	* aux/macros/check_mount_style.m4: freebsd3 no longer needs a
953151292Sobrien	special mount helper.
953251292Sobrien
953351292Sobrien1999-01-12  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
953451292Sobrien
953551292Sobrien	* aux/macros/check_nfs_prot_headers.m4 (AMU_NFS_PROT_HEADERS):
953651292Sobrien	amu_nfs_conf.h should always be found in $top_builddir.
953751292Sobrien
953851292SobrienTue Jan 12 00:05:42 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
953951292Sobrien
954051292Sobrien	* conf/nfs_prot/nfs_prot_sunos5_7.h (MNTTAB_TYPE_AUTOFS): Undefine
954151292Sobrien	to avoid wrong reports from show_fstypes.
954251292Sobrien
954351292Sobrien	* conf/nfs_prot/nfs_prot_irix5.h (MNTTAB_TYPE_XFS): Likewise.
954451292Sobrien
954551292Sobrien	* conf/nfs_prot/nfs_prot_hpux11.h (MNTTAB_TYPE_NFS3): Likewise.
954651292Sobrien
954751292SobrienTue Jan 12 00:05:42 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
954851292Sobrien
954951292Sobrien	* BUGS (mips-dec-ultrix4.3): Update Ultrix caveats.
955051292Sobrien
955151292SobrienTue Jan 12 00:05:42 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
955251292Sobrien
955351292Sobrien	* hlfsd/homedir.c (delay): Cast child to long, adapt format.
955451292Sobrien	(hlfsd_getpwent): Likewise for pw_uid.
955551292Sobrien
955651292Sobrien	* amd/info_nis.c (nis_init): Cast order to unsigned long, adapt
9557174294Sobrien	format.
955851292Sobrien
955951292Sobrien	* conf/transp/transp_tli.c (amu_clnt_create_best_vers): Cast
956051292Sobrien	tv_sec to int to match format.
956151292Sobrien	(get_nfs_version): Cast nfs_version, NFS_VERSION to int to match
9562174294Sobrien	formats.
956351292Sobrien
956451292Sobrien	* amd/amfs_program.c (amfs_program_exec): Cast ptr difference to
956551292Sobrien	long, adapt format.
956651292Sobrien
956751292Sobrien	* include/am_defs.h: Handle __attribute__ if available.  From
956851292Sobrien	GNU fileutils 4.0 lib/errors.h.
956951292Sobrien
957051292SobrienMon Jan 11 13:46:44 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
957151292Sobrien
957251292Sobrien	* libamu/mount_fs.c (print_nfs_args): Cast sizeof() to int to
957351292Sobrien	match format.
957451292Sobrien
957551292Sobrien	* hlfsd/stubs.c (nfsproc_getattr_2_svc): Cast uid, gid to long,
957651292Sobrien	adapt format.
957751292Sobrien	(nfsproc_lookup_2_svc): Likewise.
957851292Sobrien	(nfsproc_readlink_2_svc): Likewise for userid, groupid.
957951292Sobrien
958051292Sobrien	* hlfsd/nfs_prot_svc.c (nfs_program_2): Cast args to int to match
958151292Sobrien	format.
958251292Sobrien
958351292Sobrien	* hlfsd/homedir.c (homedir): Cast uid, child to long, adapt
9584174294Sobrien	format.
958551292Sobrien
958651292Sobrien	* amd/info_hesiod.c (hesiod_search): Cast m, pval, tp to unsigned
958751292Sobrien	long, adapt format.
958851292Sobrien
958951292Sobrien	* amd/ops_nfs.c (find_nfs_fhandle_cache): Cast fh_wchan to
959051292Sobrien	unsigned long, adapt format.
959151292Sobrien	(got_nfs_fh): Likewise.
959251292Sobrien	(prime_nfs_fhandle_cache): Cast fh_nfs_version to int to match
9593174294Sobrien	format.
959451292Sobrien	(call_mountd): Likewise, mnt_version also.
959551292Sobrien	(mount_nfs_fh): Likewise.
959651292Sobrien
959751292Sobrien	* amd/ops_autofs.c (autofs_program_1): Cast args to int to match
959851292Sobrien	format.
959951292Sobrien	(autofs_unmount_1_svc): Cast ur->devid, ur_rdevid, ur->next to
960051292Sobrien	unsigned long, adapt formats.
960151292Sobrien	(autofs_bgmount): Cast opt_fs to unsigned to, adapt format.
960251292Sobrien	(autofs_bgmount): Use long format to match arg.
960351292Sobrien	(autofs_lookuppn): Removed superfluous arg.
960451292Sobrien
960551292Sobrien	* amd/srvr_nfs.c (start_ping): Cast nfs_version to int to match
9606174294Sobrien	format.
960751292Sobrien	(got_portmap): Likewise for port.
960851292Sobrien	(recompute_portmap): Likewise for fs->fs_version, mnt_version.
960951292Sobrien	(find_nfs_srvr): Likewise for nfs_version.
961051292Sobrien
961151292Sobrien	* amd/sched.c (sched_task): Cast wchan to unsigned long, adapt
9612174294Sobrien	format.
961351292Sobrien
961451292Sobrien	* amd/nfs_start.c (checkup): Cast ptr difference to long, next_mem
961551292Sobrien	to unsigned long, adapt format.
961651292Sobrien	Cast tvv.tv_sec to int to match format.
961751292Sobrien
961851292Sobrien	* amd/nfs_prot_svc.c (nfs_program_2): Cast args to int to match
961951292Sobrien	format.
962051292Sobrien
962151292Sobrien	* amd/map.c (root_fh): Cast pid to long, adapt format.
962251292Sobrien	(timeout_mp): Cast time_t to long, adapt format.
962351292Sobrien
962451292Sobrien	* amd/clock.c (reschedule_timeouts): Use long format, cast time_t
962551292Sobrien	arg.
962651292Sobrien
962751292Sobrien	* amd/amfs_host.c (fetch_fhandle): Cast nfs_version to int to
962851292Sobrien	match format.
962951292Sobrien	(amfs_host_fmount): Likewise.
963051292Sobrien	(amfs_host_umounted): Likewise.  Removed superfluous arg.
963151292Sobrien
963251292Sobrien	* amd/amfs_auto.c (amfs_auto_bgmount): Cast pointer to unsigned
963351292Sobrien	long, adapt format.
963451292Sobrien	(amfs_auto_bgmount): Use long format, cast time_t arg.
963551292Sobrien	(amfs_auto_lookuppn): Removed superfluous arg.
963651292Sobrien
963751292Sobrien	* amd/amd.c (main): Cast geteuid() result to long, adapt format.
963851292Sobrien
963951292Sobrien	* conf/transp/transp_sockets.c (get_nfs_version): Cast nfs_version
964051292Sobrien	to int to match format.
964151292Sobrien
964251292Sobrien	* include/am_utils.h: Declare plog, dplog as printf-like.
964351292Sobrien
964451292Sobrien	* conf/mount/mount_irix6.c (mount_irix): Print type as char *.
964551292Sobrien
964651292SobrienMon Jan 11 13:46:44 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
964751292Sobrien
964851292Sobrien	* amd/info_hesiod.c (hesiod_isup): New function.
964951292Sobrien	* amd/mapc.c (maptypes): Add it.
965051292Sobrien
965151292Sobrien1999-01-10  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
965251292Sobrien
965351292Sobrien	* released snapshot am-utils-6.0.1s1
965451292Sobrien
965551292Sobrien1999-01-09  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
965651292Sobrien
965751292Sobrien	* ALL: bump copyright year to 1999.
965851292Sobrien
965951292SobrienFri Jan  8 15:24:15 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
966051292Sobrien
966151292Sobrien	* aux/macros/check_mtype_type.m4: Ultrix uses an int mount type,
9662174294Sobrien	too.
966351292Sobrien
966451292Sobrien	* aux/macros/check_mtype_printf_type.m4: Adapt corresponding
966551292Sobrien	printf type.
966651292Sobrien
966751292SobrienFri Jan  8 15:24:15 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
966851292Sobrien
966951292Sobrien	* aux/acconfig.h: Removed HAVE_AM_FS_AUTOFS, unused.
967051292Sobrien
967151292Sobrien	* conf/nfs_prot/nfs_prot_irix6.h: Likewise.
967251292Sobrien
967351292Sobrien	* conf/nfs_prot/nfs_prot_sunos5_6.h: Likewise.
967451292Sobrien
967551292Sobrien	* conf/nfs_prot/nfs_prot_sunos5_7.h: Likewise.
967651292Sobrien
967751292Sobrien	* Makefile.am (EXTRA_DIST_DIRS): Removed, not needed by current
967851292Sobrien	automake.
967951292Sobrien
968051292SobrienThu Jan  7 02:55:18 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
968151292Sobrien
968251292Sobrien	* aux/configure.in (AM_PROG_YACC): Replaced by AC_PROG_YACC, not
968351292Sobrien	in current automake.
968451292Sobrien
968551292SobrienThu Jan  7 02:55:18 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
968651292Sobrien
968751292Sobrien	* doc/am-utils.texi: Added some missing inter-punctation after
968851292Sobrien	@xref, or use @pxref/@ref as appropriate.  Spotted by makeinfo
968951292Sobrien	from texinfo 3.12b.
969051292Sobrien
969151292Sobrien1999-01-07  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
969251292Sobrien
969351292Sobrien	* doc/texinfo.tex: updated off of latest GNU mirror.
969451292Sobrien
969551292Sobrien1999-01-04  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
969651292Sobrien
969751292Sobrien	* doc/am-utils.texi (Supported Platforms): update platforms that
969851292Sobrien	support NFS v.3.  Nicer postscript printing on double-sided pages.
969951292Sobrien
970051292Sobrien	* amd/info_hesiod.c: add extern definition for hesiod_init()
970151292Sobrien
970242629Sobrien1999-01-01  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
970342629Sobrien
970442629Sobrien	*******************************************************************
970542629Sobrien	*** Released am-utils-6.0					***
970642629Sobrien	*******************************************************************
970742629Sobrien
970842629Sobrien1998-12-28  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
970942629Sobrien
971042629Sobrien	* conf/nfs_prot/nfs_prot_sunos5_7.h: support ldap in solaris 2.7.
971142629Sobrien
971242629Sobrien1998-12-27  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
971342629Sobrien
971442629Sobrien	* conf/nfs_prot/nfs_prot_bsdi3.h: don't use reserved ports on
971542629Sobrien	bsdi4 for NFS V3/nfs mounts.
971642629Sobrien
971742629Sobrien1998-12-26  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
971842629Sobrien
971942629Sobrien	* using latest libtool (1.2e + patches), now supporting shared
972042629Sobrien	libraries on many more systems.  Also using latest autoconf and
972142629Sobrien	automake (unreleased GNU CVS'd versions.)
972242629Sobrien
972342629Sobrien	* minor new ports: hppa2.0w-hp-hpux11.00,
972442629Sobrien	i386-unknown-netbsd1.3.3, mips-sgi-irix6.5.
972542629Sobrien
972642629Sobrien	* fsinfo/fsinfo.h (yywrap): define it for systems (osf4) that
972742629Sobrien	have /usr/bin/flex but not libfl.
972842629Sobrien
972942629Sobrien1998-12-24  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
973042629Sobrien
973142629Sobrien	* lots of code cleanup, to make sure libamu.so does not use
973242629Sobrien	undefined symbols.  Some system's shared libraries cannot handle
973342629Sobrien	that.
973442629Sobrien
973542629Sobrien1998-12-23  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
973642629Sobrien
973742629Sobrien	* include/am_defs.h: only defined seteuid extern if function also
973842629Sobrien	exists and is not superceded by setresuid (hpux).
973942629Sobrien
974042629Sobrien	* amd/ops_autofs.c (autofs_bgmount, autofs_lookuppn): put explicit
974142629Sobrien	braces to avoid confusion with nested if-then-else clauses.
974242629Sobrien
974342629Sobrien	* aux/config.{sub,status}, aux/{ltmain.sh,ltconfig,mkinstalldirs:
974442629Sobrien	updated from latest versions.
974542629Sobrien
974642629Sobrien1998-12-22  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
974742629Sobrien
974842629Sobrien	* minor new port: i386-pc-bsdi4.0
974942629Sobrien
975042629Sobrien	* conf/nfs_prot/nfs_prot_bsdi3.h: add missing hesiod header
975142629Sobrien	definitions for bsdi4.
975242629Sobrien
975342629Sobrien	* {amd,fsinfo}/Makefile.am: force path to .y/.l files, because
975442629Sobrien	some make programs (bsdi4) do not support VPATH correctly.
975542629Sobrien
975642629Sobrien1998-12-16  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
975742629Sobrien
975842629Sobrien	* conf/mount/mount_aix.c: minor code cleanup
975942629Sobrien
976042629Sobrien	* aux/configure.in: check for extern definition to xdr_groups.
976142629Sobrien
976242629Sobrien1998-12-15  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
976342629Sobrien
976442629Sobrien	* minor new port: powerpc-ibm-aix4.3.1.0
976542629Sobrien
976642629Sobrien	* aux/macros/*.m4: updates for aix 4.3
976742629Sobrien
976842629Sobrien1998-12-14  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
976942629Sobrien
977042629Sobrien	* minor new port: i386-unknown-openbsd2.4
977142629Sobrien
977242629Sobrien	* aux/configure.in: don't check for xfs on openbsd because
977342629Sobrien	openbsd-2.4 introduces a new file system named xfs, but different
977442629Sobrien	than Irix's XFS.  Sigh.
977542629Sobrien
977642629Sobrien	* minor new port: i386-unknown-freebsd2.2.8
977742629Sobrien
977842629Sobrien1998-12-03  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
977942629Sobrien
978042629Sobrien	* amd/amfs_nfsl.c (amfs_nfsl_ffserver): use case insensitive host
978142629Sobrien	name match.  Bug fix from Douglas K. Rand" <rand@aero.und.edu>.
978242629Sobrien
978342629Sobrien1998-11-20  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
978442629Sobrien
978542629Sobrien	* scripts/ctl-amd.in: wait4amd2die runs in the stop action, to
978642629Sobrien	avoid race conditions when shutting down systems running amd.
978742629Sobrien
978842629Sobrien	* Makefile.am: add a dist-hook to change modes of the directories
978942629Sobrien	in the tar file so they are not world writable.
979042629Sobrien
979142629Sobrien	* conf/nfs_prot/nfs_prot_freebsd3.h: turned on NFSv3 support,
979242629Sobrien	since it is now finally defined in the header files and
979342629Sobrien	(hopefully) stable.
979442629Sobrien
979542629Sobrien	* amd/srvr_nfs.c (find_nfs_srvr): allow overriding if nfsv2 option
979642629Sobrien	is specified in mount options.  freebsd patches from David
979742629Sobrien	O'Brien.
979842629Sobrien
979942629Sobrien	* amq/amq.c (main), fixmount/fixmount.c (main), hlfsd/hlfsd.c
980042629Sobrien	(main), fsinfo/fsinfo.c (fsi_get_args), hlfsd/hlfsd.c (main),
980142629Sobrien	amd/get_args.c (get_args): posix: use -1 to check for return from
980242629Sobrien	getopt() (not EOF), as per posix.
980342629Sobrien
980442629Sobrien	* amd/amq_subr.c (xdr_amq_mount_tree_node): patches from "David
980542629Sobrien	O'Brien" <obrien@NUXI.com>, from the FreeBSD source tree.  Use
980642629Sobrien	real variable whose pointer is on the stack for decoding a long
980742629Sobrien	int.
980842629Sobrien
980942629Sobrien1998-11-11  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
981042629Sobrien
981142629Sobrien	* scripts/ctl-{amd,hlfsd}.in: include comments useful for redhat's
981242629Sobrien	chkconfig utility.
981342629Sobrien
981442629Sobrien1998-11-10  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
981542629Sobrien
981642629Sobrien	* released snapshot am-utils-6.0b2s3
981742629Sobrien
981842629Sobrien	* conf/transp/transp_sockets.c (create_nfs_service): remove C++
981942629Sobrien	style comments.
982042629Sobrien
982142629Sobrien1998-11-04  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
982242629Sobrien
982342629Sobrien	* released snapshot am-utils-6.0b2s2
982442629Sobrien
982542629Sobrien	* created CVS package
982642629Sobrien
982742629Sobrien	* amd/nfs_subr.c (nfsproc_lookup_2_svc): try to avoid a race
982842629Sobrien	condition between unmounting and re-mounting an entry, by
982942629Sobrien	increasing the ttl of a looked up entry before unmounting it.
983042629Sobrien	Patch from Mike Mitchell <mcm@unx.sas.com>.
983142629Sobrien
983242629Sobrien	* All files: spell comments and strings.
983342629Sobrien
983442629Sobrien1998-11-03  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
983542629Sobrien
983642629Sobrien	* aux/configure.in: look for yp_all in libnsl only if yp_all not
983742629Sobrien	already found elsewhere (in libc or other default libraries).
983842629Sobrien	This is so RedHat 5.1 systems could find yp functions in libnsl,
983942629Sobrien	but also so AIX 4.2.1 will NOT include libnsl, because the latter
984042629Sobrien	has broken nis functionality that also exists and works ok in libc.
984142629Sobrien
984242629Sobrien1998-10-29  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
984342629Sobrien
984442629Sobrien	* amd/amd.c (main): bug fix: swapped arguments to kill(2).  Fix
984542629Sobrien	from Danny Rathjens <dkr@cs.fiu.edu>.
984642629Sobrien
984742629Sobrien1998-10-28  Erez Zadok  <ezk@spruce.mcl.cs.columbia.edu>
984842629Sobrien
984942629Sobrien	* released snapshot am-utils-6.0b2s1
985042629Sobrien
985142629Sobrien1998-10-27  Erez Zadok  <ezk@spruce.mcl.cs.columbia.edu>
985242629Sobrien
985342629Sobrien	* aux/macros/*.m4: support bsdi4 as bsdi3.
985442629Sobrien
985542629Sobrien	* aux/macros/os_ldflags.m4: enable detection of LDAP on solaris
985642629Sobrien	2.7 (libraries located in /usr/lib/fn).  This is off until Sun
985742629Sobrien	includes LDAP header information.
985842629Sobrien
985941142Sobrien1998-10-20  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
986041142Sobrien
986141142Sobrien	*******************************************************************
986241142Sobrien	*** Released am-utils-6.0b1					***
986341142Sobrien	*******************************************************************
986441142Sobrien
986541142Sobrien1998-10-18  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
986641142Sobrien
986741142Sobrien	* mk-amd-map/mk-amd-map.c (main): use perror not strerror.
986841142Sobrien	(main): set return type to int if no ndbm maps.
986941142Sobrien
987041142Sobrien	* include/am_defs.h: avoid conflicts with <sys/mount.h> in 2.1
987141142Sobrien	kernels.
987241142Sobrien
987341142Sobrien1998-10-18  Erez Zadok  <ezk@london.mcl.cs.columbia.edu>
987441142Sobrien
987541142Sobrien	* A.i386-unknown-netbsd1.3.2/amu_nfs_prot.h: trim down and cleanup
987641142Sobrien	for netbsd 1.3.2.
987741142Sobrien
987841142Sobrien1998-10-17  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
987941142Sobrien
988041142Sobrien	* aux/configure.in: check for yp_all in libnsl, b/c redhat 5.1
988141142Sobrien	systems put NIS functions there.
988241142Sobrien
988341142Sobrien	* mk-amd-map/mk-amd-map.c: patch from "David O'Brien"
988441142Sobrien	<obrien@NUXI.com> merged in.  Use POSIX -1 return code from
988541142Sobrien	getopt(), not EOF.  Use .db extentions for systems that use it,
988641142Sobrien	instead of .{pag,dir}.
988741142Sobrien
988841142Sobrien1998-10-15  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
988941142Sobrien
989041142Sobrien	* wire-test/wire-test.c, hlfsd/hlfsd.c, fixmount/fixmount.c,
989141142Sobrien	amd/amd.c (main): avoid overrunning hostname buffer.  Bug fix from
989241142Sobrien	"David O'Brien" <obrien@NUXI.com>.
989341142Sobrien
989441142Sobrien	* scripts/amd.conf.5: minor typo reported by "David O'Brien"
989541142Sobrien	<obrien@NUXI.com> in .TH section of man page.
989641142Sobrien
989741142Sobrien	* amd/info_nis.c (am_yp_all): don't leak key-val entries.  Patch
989841142Sobrien	from Thomas Richter <richter@chemie.fu-berlin.de>.
989941142Sobrien
990041142Sobrien1998-10-12  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
990141142Sobrien
990241142Sobrien	* doc/am-utils.texi (Program Filesystem): minor typo fixed as per
990341142Sobrien	Andreas Stolcke <stolcke@speech.sri.com>.
990441142Sobrien
990541142Sobrien	* minor new ports: sparc64-unknown-linux-gnu, i386-pc-solaris2.7,
990641142Sobrien	and sparc-sun-solaris2.7.
990741142Sobrien
990841142Sobrien	* conf/mount/mount_freebsd3.c (mount_freebsd3): freebsd 3.0 is now
990941142Sobrien	a 4.4lite kernel, and somethings were removed, such as
991041142Sobrien	INITMOUNTNAMES.
991141142Sobrien
991241142Sobrien	* amd/ops_autofs.c (autofs_lookuppn): don't leak memory while
991341142Sobrien	processing /defaults.  Free temporary opts.  Patch from
991441142Sobrien	dsr@mail.lns.cornell.edu (Daniel S. Riley)
991541142Sobrien
991641142Sobrien	* amd/amfs_auto.c (amfs_auto_lookuppn): don't leak memory while
991741142Sobrien	processing /defaults.  Free temporary opts.  Patch from
991841142Sobrien	dsr@mail.lns.cornell.edu (Daniel S. Riley)
991941142Sobrien
992041142Sobrien	* conf/mtab/mtab_osf.c (read_mtab): patch from
992141142Sobrien	 dsr@mail.lns.cornell.edu (Daniel S. Riley) not to access
992241142Sobrien	 uninitialized memory on Digital Unix.
992341142Sobrien
992441142Sobrien1998-10-09  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
992541142Sobrien
992641142Sobrien	* aux/macros/{check_mtype_type,check_mtype_printf_type}.m4: most
992741142Sobrien	systems now use "char *" as their mount type.
992841142Sobrien
992941142Sobrien1998-10-08  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
993041142Sobrien
993141142Sobrien	* amd/conf.c (gopt_map_type, ropt_map_type): check if map type
993241142Sobrien	exists.
993341142Sobrien
993441142Sobrien	* amd/mapc.c (mapc_type_exists): function to test if a map of
993541142Sobrien	certain type exists.
993641142Sobrien
993741142Sobrien1998-10-08  Erez Zadok  <ezk@horatio.mcl.cs.columbia.edu>
993841142Sobrien
993941142Sobrien	* aux/macros/{mount_headers,try_compile_anyfs,try_compile_nfs}.m4,
994041142Sobrien	include/am_defs.h: Avoid a conflict in definitions of ntohl/htonl
994141142Sobrien	in RH-5.1 sparc64 between <netinet/in.h> and
994241142Sobrien	<linux/byteorder/generic.h> (2.1 kernels).
994341142Sobrien
994441142Sobrien1998-09-28  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
994541142Sobrien
994641142Sobrien	* aux/macros/func_bad_yp_all.m4 (ac_cv_func_yp_all_clean): RedHat
994741142Sobrien	5.1 systems with glibc glibc-2.0.7-19 or below leak a UDP socket
994841142Sobrien	from yp_all().
994941142Sobrien
995041142Sobrien1998-09-25  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
995141142Sobrien
995241142Sobrien	* conf/mount/mount_linux.c (parse_opts): check for pcfs support
995341142Sobrien	only if autoconfigured.
995441142Sobrien
995541142Sobrien1998-09-18  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
995641142Sobrien
995741142Sobrien	* Makefile.am (EXTRA_DIST): distribute README.yk2 file.
995841142Sobrien
995941142Sobrien	* README.y2k: explain y2k compliance status of am-utils.
996041142Sobrien
996141142Sobrien1998-09-16  Erez Zadok  <ezk@iguana.mcl.cs.columbia.edu>
996241142Sobrien
996341142Sobrien	* amd/amfs_host.c (fetch_fhandle, amfs_host_fmount,
996441142Sobrien	amfs_host_umounted): clnt_sperrno() may return a const.
996541142Sobrien
996641142SobrienSat Aug  8 23:28:32 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
996741142Sobrien
996841142Sobrien	* aux/configure.in: check for <nfs/nfsmount.h>, as per Christos
996941142Sobrien	Zoulas. Turned on checking for mount options: async, synchronous,
997041142Sobrien	deadthresh, leasterm, nqnfs, and readahead.
997141142Sobrien
997241142Sobrien	* amd/info_nis.c: patch from christos@zoulas.com (Christos Zoulas)
997341142Sobrien	to include prototype definition for nis_isup().
997441142Sobrien
997541142SobrienSun Jul 19 18:50:10 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
997641142Sobrien
997741142Sobrien	* hlfsd/stubs.c (getcreds): force sscanf arg to u_long.
997841142Sobrien
997941142SobrienTue Jul 14 20:34:25 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
998041142Sobrien
998141142Sobrien	* released snapshot am-utils-6.0a17s1
998241142Sobrien
998341142SobrienWed Jul  8 21:49:15 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
998441142Sobrien
998541142Sobrien	* aux/macros/host_macros.m4: all x86 hosts should have $arch be
998641142Sobrien	i386, not i[456]86.
998741142Sobrien
998841142SobrienTue Jul  7 18:55:09 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
998941142Sobrien
999041142Sobrien	* aux/macros/{mount_headers,try_compile_anyfs,try_compile_nfs}.m4,
999141142Sobrien	include/am_defs.h: include <linux/posix_types.h> before
999241142Sobrien	<linux/fs.h> because on redhat 5.1, there is a bug (misuse) of
999341142Sobrien	headers in <socketbits.h> (it defines _LINUX_TYPES_H instead of
999441142Sobrien	__KERNEL_STRICT_NAMES).
999541142Sobrien
999641142Sobrien	* aux/configure.in: check for <linux/posix_types.h> because it is
999741142Sobrien	need for RedHat 5.1.
999841142Sobrien
999941142SobrienWed Jun 17 00:05:33 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1000041142Sobrien
1000141142Sobrien	* scripts/Makefile.am (EXTRA_DIST): have fixrmtab generated from
1000241142Sobrien	.in as well, so it doesn't get removed by make clean.
1000341142Sobrien
1000441142SobrienTue Jun 16 22:00:15 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1000541142Sobrien
1000641142Sobrien	* aux/macros/{check_fs_mntent.m4, check_mnttab_type.m4,
1000741142Sobrien	check_mount_type.m4}: redhat 5.1 puts some modules in
1000841142Sobrien	/lib/modules/preferred/.
1000941142Sobrien
1001041142SobrienWed May 13 16:33:57 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1001141142Sobrien
1001241142Sobrien	* amd/ops_autofs.c (mount_autofs): cast pid to long.
1001341142Sobrien
1001451292SobrienTue Apr 28 15:12:36 1998  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1001551292Sobrien
1001651292Sobrien	* conf/nfs_prot/nfs_prot/nfs_prot_irix6.h,
1001751292Sobrien	conf/nfs_prot/nfs_prot_sunos5_6.h: Undef MNTTAB_TYPE_AUTOFS too to
1001851292Sobrien	avoid amd/am_ops.c (show_fstypes) from erroneously claiming
1001951292Sobrien	support.
1002051292Sobrien
1002151292SobrienFri Apr 24 23:02:11 1998  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10022174294Sobrien
1002351292Sobrien	* libamu/xutil.c (get_syslog_facility): Don't use LOG_DAEMON
1002451292Sobrien	unconditionally, may be missing on Ultrix V4.3.
1002551292Sobrien
1002651292SobrienThu Apr 23 20:24:33 1998  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1002751292Sobrien
1002851292Sobrien	* conf/nfs_prot/nfs_prot_sunos5_4.h (MNTTYPE_CACHEFS): Define,
1002951292Sobrien	missing from <sys/mntent.h>.
10030174294Sobrien
1003151292Sobrien	* conf/mtab/mtab_ultrix.c: Need separate inclusion of <sys/fs_types.h>
1003251292Sobrien	without KERNEL defined here.
1003351292Sobrien
1003451292Sobrien	* aux/macros/mount_headers.m4: Need to include <ufs/ufs_mount.h>,
1003551292Sobrien	<cdfs/cdfs_mount.h>, <cdfs/cdfsmount.h> so autoconfiguration of
1003651292Sobrien	ufs_args_t, cdfs_args_t fields and cdfs mount options can succeed.
1003751292Sobrien
1003851292Sobrien	* amd/ops_ufs.c (mount_ufs): Removed obsolete comment.
1003951292Sobrien
1004051292Sobrien	* ChangeLog: Fixed confusing linebreaks from ChangeLog imports.
1004151292Sobrien	Removed purely local (and obsolete) entry.
1004251292Sobrien
1004338494SobrienThu Apr 23 00:22:17 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1004438494Sobrien
1004538494Sobrien	*******************************************************************
1004638494Sobrien	*** Released am-utils-6.0a16					***
1004738494Sobrien	*******************************************************************
1004838494Sobrien
1004938494SobrienWed Apr 22 01:20:39 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1005038494Sobrien
1005138494Sobrien	* aux/macros/check_mount_style.m4: define freebsd3 mount style.
1005238494Sobrien
1005338494Sobrien	* aux/macros/check_mount_trap.m4: new mount trap for freebsd3.
1005438494Sobrien
1005538494Sobrien	* aux/macros/check_mtype_printf_type.m4,
1005638494Sobrien	aux/macros/check_mtype_type.m4 (ac_cv_mtype_type,): freebsd3 (as
1005738494Sobrien	of snapshot 3.0-980311-SNAP) uses char * types for mount(2), not
1005838494Sobrien	integers, but I'll keep them as integers and do the mapping in
1005938494Sobrien	conf/mount/mount_freebsd3.c
1006038494Sobrien
1006138494Sobrien	* minor new port to i386-pc-bsdi3.1.
1006238494Sobrien
1006338494Sobrien	* minor new port to i386-unknown-netbsd1.3.1.
1006438494Sobrien
1006538494Sobrien	* amd/opts.c: new option addopts:=ARG, which smartly merges ARG
1006638494Sobrien	options with whatever the /default ones for a key are.  This
1006738494Sobrien	allows adding or overriding /default options individual keys.
1006838494Sobrien
1006938494Sobrien	* amd/am_ops.c (ops_match): strdup/malloc string assigned to
1007038494Sobrien	opt_opts because it'll get free()'d upon next use.
1007138494Sobrien	(merge_opts): new function to merge two sets of options.
1007238494Sobrien	(ops_match): if addopts option exist, append and merge it to the
1007338494Sobrien	current default options.
1007438494Sobrien
1007538494SobrienTue Apr 21 12:54:59 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1007638494Sobrien
1007738494Sobrien	* wire-test/wire-test.c (main): use dynamically allocated returned
1007838494Sobrien	string with list of interfaces.
1007938494Sobrien
1008038494Sobrien	* amd/get_args.c (get_version_string): allocate enough space for
1008138494Sobrien	header version string and a list of network interfaces of any
1008238494Sobrien	length.
1008338494Sobrien
1008438494Sobrien	* libamu/wire.c (print_wires): return dynamically allocated string
1008538494Sobrien	containing list of networks.  Must be dynamic because some sites
1008638494Sobrien	had potentially dozens of network interfaces.  Patch from Matthew
1008738494Sobrien	Crosby <mcrosby@ms.com> slightly modified.
1008838494Sobrien
1008938494SobrienMon Apr 20 00:37:20 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1009038494Sobrien
1009138494Sobrien	* conf/nfs_prot/nfs_prot_irix5.h: underfine MNTTYPE_XFS because
1009238494Sobrien	irix 5.3 does not have full header definitions for it.
1009338494Sobrien
1009438494Sobrien	* fsinfo/fsi_lex.l (yywrap): define yywrap if needed, and
1009538494Sobrien	undefined it when not needed (similar to amd/conf_tok.l)
1009638494Sobrien
1009738494Sobrien	* hlfsd/hlfsd.h (ROOTID, SLINKID, INVALID): reduced maximum size
1009838494Sobrien	of these to unsigned short (because uid_t on some linux systems is
1009938494Sobrien	small).
1010038494Sobrien
1010138494Sobrien	* released snapshot am-utils-6.0a16s10
1010238494Sobrien
1010338494Sobrien	* doc/am-utils.texi (opts Option): documented resvport mount
1010438494Sobrien	option.
1010538494Sobrien
1010638494SobrienSun Apr 19 18:17:03 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1010738494Sobrien
1010838494Sobrien	* doc/am-utils.texi (-D-Option): document behavior of -D info and
1010938494Sobrien	especially what it does to hesiod (turn on RES_DEBUG).
1011038494Sobrien
1011138494Sobrien	* scripts/amd.conf.5: document info debugging option.
1011238494Sobrien
1011338494Sobrien	* libamu/xutil.c (dbg_opt): parse info debugging option.
1011438494Sobrien
1011538494Sobrien	* include/am_utils.h (D_INFO): define new trace option.
1011638494Sobrien
1011738494Sobrien	* Makefile.am (EXTRA_DIST): include list of official mirrors in
1011838494Sobrien	distribution.
1011938494Sobrien
1012038494Sobrien	* libamu/wire.c (SIZE): in the simple case, just compute
1012138494Sobrien	sizeof(struct ifreq).
1012238494Sobrien
1012338494SobrienSun Apr 19 16:30:35 1998  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1012438494Sobrien
1012538494Sobrien	* amd/amd.c (daemon_mode): set a temporary secure umask(0022)
1012638494Sobrien	before writing log file and restore it afterwards.  Patch from
1012738494Sobrien	Donald Buczek <buczek@MPIMG-Berlin-Dahlem.MPG.DE>.
1012838494Sobrien
10129174294Sobrien	* amd/get_args.c (get_args):
1013038494Sobrien
1013138494Sobrien	* doc/am-utils.texi (-F Option), amd/amd.8: mention that amd.conf
1013238494Sobrien	file specified by -F is always processed last.
1013338494Sobrien
1013438494Sobrien	* amd/amd.c (daemon_mode): do not fclose(stdout) so that the fd
1013538494Sobrien	won't be reused.  Allows startup script to redirect stdout.  Patch
1013638494Sobrien	from Donald Buczek <buczek@MPIMG-Berlin-Dahlem.MPG.DE>.
1013738494Sobrien
1013838494Sobrien	* libamu/xutil.c (switch_to_logfile): compare logfile name and
1013938494Sobrien	syslog string with correct length.  Patch from Donald Buczek
1014038494Sobrien	<buczek@MPIMG-Berlin-Dahlem.MPG.DE>.
1014138494Sobrien
1014238494Sobrien	* amd/restart.c (restart): correctly inherit existing NFS V.3
1014338494Sobrien	mounts upon restart.  Patch from Donald Buczek
1014438494Sobrien	<buczek@MPIMG-Berlin-Dahlem.MPG.DE>.
1014538494Sobrien
1014638494SobrienSat Apr 18 19:01:19 1998  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1014738494Sobrien
1014838494Sobrien	* using libtool 1.2 and automake 1.3 (with my patches).
1014938494Sobrien
1015038494Sobrien	* aux/macros/opt_am_cflags.m4, */Makefile.in: rename AM_CFLAGS to
1015138494Sobrien	AMU_CFLAGS to avoid conflicts with automake-1.3.
1015238494Sobrien
1015338494SobrienSun Apr  5 23:09:08 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1015438494Sobrien
1015538494Sobrien	* converted to using libtool-1.2.
1015638494Sobrien
1015738494SobrienTue Mar 10 16:52:09 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1015838494Sobrien
1015938494Sobrien	* fsinfo/fsi_analyze.c (fixup_required_mount_info): replaced silly
1016038494Sobrien	for loop (ITER) which used to run only to initialize the variable
1016138494Sobrien	dd once and then break; with a simple assignment.
1016238494Sobrien
1016338494Sobrien	* hlfsd/hlfsd.h: cleanup so it compiles with Solaris
1016438494Sobrien	/opt/SUNWspro/bin/cc, and use gid_t not int.
1016538494Sobrien
1016638494Sobrien	* amd/mapc.c (mapc_sync): don't dereference pointer (so it
1016738494Sobrien	compiles with Solaris /opt/SUNWspro/bin/cc)
1016838494Sobrien
1016938494SobrienSun Mar  8 15:54:22 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1017038494Sobrien
1017138494Sobrien	* aux/config.{guess,sub}: used from gcc-2.8.1.
1017238494Sobrien
1017338494SobrienSat Mar  7 15:33:27 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1017438494Sobrien
1017538494Sobrien	* released snapshot am-utils-6.0a16s9
1017638494Sobrien
1017738494Sobrien	* INSTALL, doc/am-utils.texi (Supported Platforms): updated names
1017838494Sobrien	based on new output of new config.guess.
1017938494Sobrien
1018038494Sobrien	* aux/config.{sub,guess}: used newer versions from gcc-2.8.0.
1018138494Sobrien
1018238494Sobrien	* amd/amd.8,doc/am-utils.texi: document correct usage of default
1018338494Sobrien	/etc/amd.conf file.
1018438494Sobrien
1018538494Sobrien	* fixmount/fixmount.c (inetresport,privsock): use some more
1018638494Sobrien	portable code from amq/amq.c.
1018738494Sobrien
1018838494Sobrien	* amd/get_args.c (get_args): use default /etc/amd.conf file only
1018938494Sobrien	if no arguments had been passed to amd.
1019038494Sobrien
1019138494Sobrien	* fixmount/fixmount.c (clnt_create_timeout): use tli/socket code
1019238494Sobrien	ala amq/amq.c so that fixmount will work on both types of systems.
1019338494Sobrien
1019438494Sobrien	* amq/amq.c (main): do no close tcp socket before running udp try,
1019538494Sobrien	because we're not sure if it was opened at all.
1019638494Sobrien
1019738494Sobrien	* mips-dec-ultrix* port merged in and cleaned up.
1019838494Sobrien
1019938494Sobrien	* aux/configure.in: up minor shared library revision number, since
1020038494Sobrien	it has changed enough.
1020138494Sobrien
1020238494Sobrien	* hlfsd/hlfsd.c (main): don't check for overlay mount option here,
1020338494Sobrien	as it is now done in compute_nfs_args().  Remove ultrix specific
1020438494Sobrien	code also because it was moved to compute_nfs_args().
1020538494Sobrien
1020638494Sobrien	* conf/mount/mount_svr4.c: removed DEBUG_MOUNT_SVR4 code, now that
1020738494Sobrien	we have more generic code in print_nfs_args().
1020838494Sobrien
1020938494Sobrien	* libamu/mount_fs.c (print_nfs_args): print maxlen of
1021038494Sobrien	nfs_args.addr, and also syncaddr (which is mostly NULL).  Print
1021138494Sobrien	struct knetconfig from nfs_args->knconf.
1021238494Sobrien
1021338494Sobrien	* aux/macros/mount_headers.m4 (define): do not check for ufs/cdfs
1021438494Sobrien	headers here, but in try_compile_anyfs.m4.
1021538494Sobrien
1021638494Sobrien	* aux/macros/type_ufs_args.m4: move test for struct ufs_specific
1021738494Sobrien	(for ultrix) here from its own macro.
1021838494Sobrien
1021938494Sobrien	* aux/macros/type_cdfs_args.m4: move test for struct iso_specific
1022038494Sobrien	(for ultrix) here from its own macro.
1022138494Sobrien
1022238494Sobrien	* amd/ops_nfs.c (mount_nfs_fh): no need to run code again checking
1022338494Sobrien	for overlay mount option.  Remove code which checks for overlay
1022438494Sobrien	option, as it is now done in compute_nfs_args().
1022538494Sobrien
1022638494Sobrien	* libamu/mount_fs.c (compute_mount_flags): move here code which
1022738494Sobrien	checks for overlay mount option which was in amd/amfs_toplvl.c:
1022838494Sobrien	mount_amfs_toplvl().
1022938494Sobrien
1023038494SobrienWed Feb  7 15:35:51 1998  Rainer Orth  <ro@xayide.TechFak.Uni-Bielefeld.DE>
1023138494Sobrien
1023238494Sobrien	* The following are Rainer's ChangeLog entries for his ultrix
1023338494Sobrien	port, added manually. -Erez.
1023438494Sobrien
1023538494Sobrien	* merged Ultrix port with am-utils 6.0 a16s5: amd/ops_afs.c
1023638494Sobrien	(mount_toplvl) -> amd/amfs_toplvl.c (mount_amfs_toplvl)
1023738494Sobrien
1023851292Sobrien	* include/am_defs.h: include cdfs specific mount headers
1023951292Sobrien	avoid duplication definition of gt_names[] in <sys/fs_types.h> (Ultrix)
1024038494Sobrien
1024138494Sobrien	* include/am_compat.h: define several mount options corresponding
1024238494Sobrien	to mount flags: pgthresh, hard (nfs), defperm, nodefperm,
1024338494Sobrien	noversion, rrip (cdfs), nocache, quota, sync (generic) removed
1024438494Sobrien	duplicate MNTTAB_OPT_RO definition
1024538494Sobrien
1024638494Sobrien	* aux/macros/try_compile_anyfs.m4: include Ultrix specific
1024738494Sobrien	ufs/cdfs mount headers
1024838494Sobrien
1024938494Sobrien	* aux/macros/mount_headers.m4: include several Ultrix/Digital UNIX
1025038494Sobrien	specific mount headers
1025138494Sobrien
1025238494Sobrien	* aux/macros/check_{fs_mntent, mount_type}.m4: check for GT_*
1025338494Sobrien	mount types in mount headers (Ultrix)
1025438494Sobrien
1025538494Sobrien	* aux/configure.in: Ultrix/Digital UNIX specific checks: new
1025638494Sobrien	headers, mount structures and fields, filesystem and mount types,
1025738494Sobrien	mount flags
1025838494Sobrien
1025938494Sobrien	* aux/acconfig.h: placeholders for new mount options: quota
1026038494Sobrien	(generic), ro (nfs), defperm, nodefperm, noversion, rrip (cdfs)
1026138494Sobrien	cdfs, nfs, ufs mount structure fields new ufs, cdfs mount
1026238494Sobrien	structures
1026338494Sobrien
1026438494Sobrien	* amd/ops_ufs.c (mount_ufs): Ultrix stores generic mount flags in
1026538494Sobrien	ufs_args.ufs_flags and has ufs specific pgthresh option
1026638494Sobrien
1026738494Sobrien	* amd/ops_cdfs.c (mount_cdfs): handle Ultrix/Digital UNIX specific
1026838494Sobrien	CDFS mount flags and options
1026938494Sobrien
1027038494Sobrien	* amd/ops_afs.c (mount_toplvl), amd/ops_nfs.c (mount_nfs_fh),
1027138494Sobrien	hlfsd/hlfsd.c (main): store generic mount flags in
1027238494Sobrien	nfs_args.gfs_flags, handle separate NFS ro flag
1027338494Sobrien
1027438494Sobrien	* aux/macros/{check_mnt2_cdfs_opt, struct_iso_specific,
1027538494Sobrien	struct_ufs_specific}.m4: new files; check for Ultrix specific
1027638494Sobrien	mount structures
1027738494Sobrien
1027838494Sobrien	* conf/trap/trap_ultrix.h: arg 3 to mount(2) is rwflag
1027938494Sobrien
1028038494Sobrien	* aux/macros/type_auth_create_gidlist.m4 (ultrix*):
1028138494Sobrien	AUTH_CREATE_GIDLIST_TYPE is int (not short == gid_t) from a
1028238494Sobrien	comment in <rpc/auth.h>
1028338494Sobrien
1028438494Sobrien	* include/am_defs.h: #define KERNEL to avoid definition of
1028582794Sobrien	gt_names[] conf/mtab/mtab_ultrix.c: #include <sys/fs_types> before
1028682794Sobrien	<config.h> to force single definition here
1028738494Sobrien
1028838494Sobrien	* libamu/mount_fs.c (compute_nfs_args): Ultrix support for
1028982794Sobrien	nfs_args.gfs_flags moved to callers store mount options in
1029082794Sobrien	nap->optstr
1029138494Sobrien
1029238494Sobrien	* include/am_defs.h: fix _am_mntent mnt_{type, opts} field
1029338494Sobrien	descriptions
1029438494Sobrien
1029538494Sobrien	* aux/macros/mount_headers.m4, aux/macros/try_compile_nfs.m4:
1029638494Sobrien	include <rpc/rpc.h> before AMU_NFS_PROTOCOL_HEADER for svc_req
1029738494Sobrien	definition in prototypes
1029838494Sobrien
1029938494Sobrien	* aux/macros/mount_headers.m4: include <sys/errno.h> before
1030038494Sobrien	AMU_NFS_PROTOCOL_HEADER: <nfs/nfs.h> needs it for NFSERR_*
1030138494Sobrien	definitions
1030238494Sobrien
1030338494Sobrien	* conf/nfs_prot/nfs_prot_ultrix.h: new file
1030438494Sobrien
1030551292Sobrien	* aux/macros/check_nfs_prot_headers.m4: use nfs_prot_ultrix.h
1030638494Sobrien
1030738494Sobrien	* aux/macros/mount_headers.m4, aux/macros/try_compile_nfs.m4,
1030838494Sobrien	aux/macros/try_compile_rpc.m4, include/am_defs.h: avoid multiple
1030938494Sobrien	inclusion of <rpc/xdr.h>
1031038494Sobrien
1031138494SobrienSat Mar  7 13:56:05 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1031238494Sobrien
1031338494Sobrien	* aux/configure.in: save state of config.cache and confdefs.h
1031438494Sobrien	(as dbgcf.h) at various points of the configure.
1031538494Sobrien
1031638494Sobrien	* aux/macros/save_state.m4: new macro to save state of configure,
1031738494Sobrien	esp. useful in long ones.  Saves confdefs.h and write $ac_cv_*
1031838494Sobrien	cache variables that are known so far.
1031938494Sobrien
1032038494Sobrien	* released snapshot am-utils-6.0a16s8
1032138494Sobrien
1032238494Sobrien1998-03-06  Erez Zadok  <ezk@mercer.psl.cs.columbia.edu>
1032338494Sobrien
1032438494Sobrien	* fsinfo/fsi_lex.l,amd/conf_tok.l: define ECHO after undefining
1032538494Sobrien	it, but only for flex.
1032638494Sobrien
1032738494SobrienFri Mar  6 17:23:17 1998  Erez Zadok  <ezk@chestnut.mcl.cs.columbia.edu>
1032838494Sobrien
1032938494Sobrien	* hlfsd/homedir.c (plt_print): change pathname of hlfsd dump file
1033038494Sobrien	to /usr/tmp/hlfsd.dump.XXXXXX, and use a safe method (if possible)
1033138494Sobrien	to write the dump file.
1033238494Sobrien
1033338494Sobrien	* doc/am-utils.texi,amd/opts.c: rename all references to nomadic
1033438494Sobrien	functions to boolean functions, which is what they really are.
1033538494Sobrien
1033638494Sobrien	* aux/configure.in: don't look for strcasecmp in libucb at all,
1033738494Sobrien	but rather complete it from libamu/strcasecmp.c as needed.
1033838494Sobrien
1033938494SobrienFri Mar  6 03:29:20 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1034038494Sobrien
1034138494Sobrien	* conf/nfs_prot/nfs_prot_osf4.h: avoid conflicts with Irix's EFS.
1034238494Sobrien
1034338494Sobrien	* libamu/wire.c (getwire): fix for 0.0.0.0 loopback on SunOS 3.X
1034438494Sobrien	which defines IFF_ROUTE instead of IFF_LOOPBACK.  Patch from Tom
1034538494Sobrien	Schmidt <tschmidt@micron.com>.
1034638494Sobrien
1034738494Sobrien	* released snapshot am-utils-6.0a16s7
1034838494Sobrien
1034938494Sobrien	* conf/nfs_prot/nfs_prot_hpux11.h: a first working port of amd to
1035038494Sobrien	hppa1.0-hp-hpux11.00.tgz.
1035138494Sobrien
1035238494SobrienThu Mar  5 21:59:03 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1035338494Sobrien
1035438494Sobrien	* converted all sources to use mntent field names, and map mnttab
1035538494Sobrien	field names to mntent's.
1035638494Sobrien
1035738494Sobrien	* include/am_defs.h (mnt_special): map struct mnttab field names
1035838494Sobrien	to struct mntent field names.
1035938494Sobrien
1036038494Sobrien	* aux/macros/check_mount_trap.m4: hpux11's mount trap style is
1036138494Sobrien	identical to svr4/solaris2.
1036238494Sobrien
1036338494Sobrien	* aux/macros/check_mount_style.m4: hpux11's mount style is
1036438494Sobrien	identical to svr4/solaris2.
1036538494Sobrien
1036638494Sobrien	* aux/macros/check_network_transport_type.m4: hpux11 is a TLI
1036738494Sobrien	system!
1036838494Sobrien
1036938494Sobrien	* aux/macros/check_nfs_sa_dref.m4: hpux11's NFS host address
1037038494Sobrien	dereferencing style is same as svr4.
1037138494Sobrien
1037238494Sobrien	* aux/macros/check_nfs_fh_dref.m4: hpux11's NFS file fh
1037338494Sobrien	dereferencing style is same as svr4.
1037438494Sobrien
1037538494Sobrien	* conf/transp/transp_tli.c (create_nfs_service): if failed to
1037638494Sobrien	getnetconfigent() of ticlts, then try udp (hpux11).
1037738494Sobrien
1037838494Sobrien	* conf/nfs_prot/nfs_prot_hpux11.h: added correct definitions for
1037938494Sobrien	struct nfs_args, nfs_fh, and NFSMNT_* flags, taken from solaris
1038038494Sobrien	2.5.1 (HP used them).
1038138494Sobrien
1038238494Sobrien	* amd/rpc_fwd.c (fwd_init): don't use O_NDELAY for t_open()
1038338494Sobrien	because hpux11 doesn't like it. if t_open failed, print error
1038438494Sobrien	based on t_errlist, not sys_errlist.
1038538494Sobrien
1038638494SobrienWed Mar  4 22:01:55 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1038738494Sobrien
1038838494Sobrien	* doc/am-utils.texi: lots of documentation fixes from Rainer Orth
1038938494Sobrien	<ro@TechFak.Uni-Bielefeld.DE>.
1039038494Sobrien
1039138494SobrienSat Feb 28 22:16:35 1998  Erez Zadok  <ezk@kosh.cs.columbia.edu>
1039238494Sobrien
1039338494Sobrien	* fsinfo/fsi_lex.l: undefine ECHO again, so it doesn't get used
1039438494Sobrien	later.
1039538494Sobrien
1039638494Sobrien	* include/am_defs.h: defined the extern for ualarm() if it isn't
1039738494Sobrien	found, regardless if the function isn't found in standard
1039838494Sobrien	libraries, because otherwise libamu will include it.
1039938494Sobrien
1040038494Sobrien1998-02-28  Erez Zadok (per Ron Snyder)  <ezk@short.cvo.roguewave.com>
1040138494Sobrien
1040238494Sobrien	* initial port to hpux-11 completed.  Compiles cleanly, but
1040338494Sobrien	probably does not work, because of missing NFS V.2/3 headers.
1040438494Sobrien
1040538494Sobrien	* amd/conf_tok.l: cast yytext to char* when passed to strlen and
1040638494Sobrien	strdup, for hpux-11's ansi-cc compiler.
1040738494Sobrien
1040838494Sobrien	* include/am_utils.h: renamed all xfree() to XFREE() to avoid
1040938494Sobrien	conflict with hpux-11's system headers.  Also move (voidp) cast
1041038494Sobrien	from sources to inside the macro itself.
1041138494Sobrien
1041238494SobrienSat Feb 28 13:44:21 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1041338494Sobrien
1041438494Sobrien	* released snapshot am-utils-6.0a16s6
1041538494Sobrien
1041638494Sobrien	* amd/info_nis.c (nis_isup): new function to test if NIS is up
1041738494Sobrien	without hanging amd.  Used to ensure that amd does not clear the
1041838494Sobrien	maps when the expiration period arrived, if the service is down.
1041938494Sobrien	Otherwise it would be left with empty maps.  It is better to stay
1042038494Sobrien	with possibly old information than none at all.
1042138494Sobrien
1042238494Sobrien	* amd/mapc.c (mapc_sync): check to see if map service is up.
1042338494Sobrien
1042438494SobrienTue Feb 24 02:19:42 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1042538494Sobrien
1042638494Sobrien	* aux/macros/check_lib2.m4 (AC_CHECK_LIB2): fix macro so it
1042738494Sobrien	includes auxiliary library only if needed.
1042838494Sobrien
1042938494Sobrien1998-02-22  Erez Zadok  <ezk@mercer.psl.cs.columbia.edu>
1043038494Sobrien
1043138494Sobrien	* amd/conf_tok.l: undefine ECHO again, so it doesn't get used
1043238494Sobrien	later.
1043338494Sobrien
1043438494SobrienSun Feb 22 01:41:08 1998  Erez Zadok  <ezk@zen.cs.columbia.edu>
1043538494Sobrien
1043638494Sobrien	* conf/nfs_prot/nfs_prot_osf2.h: port to alpha-dec-osf2.1
1043738494Sobrien	completed.
1043838494Sobrien
1043938494Sobrien	* conf/mtab/mtab_osf.c (mnt_dup): not all OSF have NFS3.
1044038494Sobrien
1044138494SobrienSat Feb 21 19:45:48 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1044238494Sobrien
1044338494Sobrien	* doc/am-utils.texi (Network Host Filesystem): correct example for
1044438494Sobrien	type:=host map.
1044538494Sobrien
1044638494Sobrien	* aux/macros/os_cflags.m4: only osf4 should compile with
1044738494Sobrien	-D_SOCKADDR_LEN.
1044838494Sobrien
1044938494Sobrien	* aux/macros/check_nfs_prot_headers.m4: distinguish between OSF2
1045038494Sobrien	and OSF4.
1045138494Sobrien
1045238494Sobrien	* BUGS: include a new file listing known bugs.
1045338494Sobrien
1045438494SobrienSat Feb 21 03:50:48 1998  Erez Zadok  <ezk@mercer.psl.cs.columbia.edu>
1045538494Sobrien
1045638494Sobrien	* conf/nfs_prot/nfs_prot_linux.h: turn DES off on all linux
1045738494Sobrien	versions.
1045838494Sobrien
1045938494Sobrien	* aux/macros/type_recvfrom_fromlen.m4: linux alpha should use
1046038494Sobrien	size_t for recvfrom fromlen arg.
1046138494Sobrien
1046238494SobrienSat Feb 21 03:33:59 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1046338494Sobrien
1046438494Sobrien	* scripts/ctl-hlfsd.in: turn -D fork so primary process never
1046538494Sobrien	hangs.
1046638494Sobrien
1046738494SobrienSat Feb 21 02:45:51 1998  Erez Zadok  <ezk@mercer.psl.cs.columbia.edu>
1046838494Sobrien
1046938494Sobrien	* include/am_defs.h: don't include <sys/stat.h> and
1047038494Sobrien	<linux/stat.h>, just remaining definitions in <statbuf.h>
1047138494Sobrien
1047238494SobrienThu Jan 29 00:44:28 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1047338494Sobrien
1047438494Sobrien	* released snapshot am-utils-6.0a16s5
1047538494Sobrien
1047638494Sobrien	* conf/mount/mount_irix6.c (mount_irix): pass {u,e,x}fs_args to
1047738494Sobrien	mount(2).
1047838494Sobrien
1047938494Sobrien	* check for <sys/fs/xfs_clnt.h> and include it when needed.
1048038494Sobrien
1048138494Sobrien	* conf/mount/{mount_irix5.c,mount_irix6.c} (mount_irix): recognize
1048238494Sobrien	efs and xfs separately from "ufs".
1048338494Sobrien
1048438494Sobrien	* amd/{ops_xfs.c,ops_efs.c}: new support for irix xfs/efs.
1048538494Sobrien
1048638494Sobrien	* aux/configure.in: look for irix efs and xfs file systems.
1048738494Sobrien
1048838494Sobrien	* scripts/amd.conf.5: new unmount_on_exit option documented.
1048938494Sobrien
1049038494Sobrien	* doc/am-utils.texi (unmount_on_exit): new option documented.
1049138494Sobrien
1049238494Sobrien	* amd/conf.c (gopt_unmount_on_exit): new function to handle new
1049338494Sobrien	amd.conf option.
1049438494Sobrien
1049538494Sobrien	* amd/map.c (umount_exported): if global amd.conf flag
1049638494Sobrien	unmount_on_exit is on, then try to unmount all mounted (or
1049738494Sobrien	restartable) file systems.
1049838494Sobrien
1049938494Sobrien	* amd/amd.c: if print_pid option is on, then normally print it to
1050038494Sobrien	stdout.  If also pid_file is specified, then print the process ID
1050138494Sobrien	into that file.
1050238494Sobrien
1050338494Sobrien	* amd/get_args.c (get_args): print correct -l option depending if
10504174294Sobrien	system supports syslog and/or syslog facilities.  Patch from
1050538494Sobrien	Tom Schmidt <tschmidt@micron.com>.
1050638494Sobrien
1050738494Sobrien	* doc/am-utils.texi (opts Option): updates for documentation for
1050838494Sobrien	new cdfs options defperm, nodefperm, noversion, rrip.
1050938494Sobrien
1051038494Sobrien	* amd/ops_cdfs.c (mount_cdfs): support cdfs options defperm,
1051138494Sobrien	nodefperm, noversion, rrip.
1051238494Sobrien
1051338494Sobrien	* conf/nfs_prot/nfs_prot_osf.h: need to look at <cdfs/cdfsmount.h>
1051438494Sobrien	on osf.
1051538494Sobrien
1051638494Sobrien	* aux/macros/{expand_cpp_hex.m4, expand_cpp_int.m4,
1051738494Sobrien	expand_cpp_string.m4}: use #error to make failed compilations
1051838494Sobrien	fail faster, rather than have the program fail during a run.
1051938494Sobrien
1052038494Sobrien	* include/am_compat.h: added a few new cdfs options: rrip,
1052138494Sobrien	noversion, defperm, and nodefperm (used in OSF).
1052238494Sobrien
1052338494SobrienWed Jan 28 20:24:09 1998  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1052438494Sobrien
1052538494Sobrien	* released snapshot am-utils-6.0a16s4
1052638494Sobrien
1052738494Sobrien	* doc/am-utils.texi (Global Parameters): update manual for new
1052838494Sobrien	amd.conf global variable hesiod_base.
1052938494Sobrien
1053038494Sobrien	* scripts/amd.conf.5: update man page for new amd.conf global
1053138494Sobrien	variable hesiod_base.
1053238494Sobrien
1053338494Sobrien	* amd/get_args.c (get_args): use /etc/amd.conf file if exists by
1053438494Sobrien	default, else try command line options.  Patch from Randall
1053538494Sobrien	S. Winchester <rsw@Glue.umd.edu>.
1053638494Sobrien
1053738494SobrienWed Jan 28 12:20:56 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1053838494Sobrien
1053938494Sobrien	* amd/info_hesiod.c (hesiod_search), amd/conf.c
1054038494Sobrien	(gopt_hesiod_base), amd/amd.h, amd/amd.c (init_global_options):
1054138494Sobrien	included patch from Randall S. Winchester <rsw@Glue.umd.edu>, to
1054238494Sobrien	support a hesiod base name in the amd.conf file.
1054338494Sobrien
1054438494Sobrien	* doc/am-utils.texi (pid_file Parameter): document new global
1054538494Sobrien	amd.conf parameter.
1054638494Sobrien
1054738494Sobrien	* scripts/amd.conf.5: document new global option pid_file.
1054838494Sobrien
1054938494Sobrien	* amd/amd.c (daemon_mode): if cannot open pid_file, continue to
1055038494Sobrien	run, but print error message.
1055138494Sobrien
1055238494Sobrien	* amd/conf.c (gopt_pid_file), amd/amd.h, amd/amd.c (daemon_mode,
1055338494Sobrien	init_global_options): Included patch from Randall S. Winchester
1055438494Sobrien	<rsw@Glue.umd.edu>, to support pid files in the amd.conf file.
1055538494Sobrien
1055638494Sobrien	* amd/get_args.c (get_args): correct usage info on amd -t.
1055738494Sobrien
1055838494Sobrien	* amd/*.c: massive file name and symbol name changes.  All amd
1055938494Sobrien	file systems files and symbols are prefix with amfs_*.  Now using
1056038494Sobrien	real name of file system: amfs_auto instead of afs, amfs_inherit
1056138494Sobrien	instead of ifs, amfs_linkx instead of sfsx, etc.  This will enable
1056238494Sobrien	clear distinction between amd file system and generic ones like
1056338494Sobrien	nfs/ufs/pcfs/hsfs.  Also, now we can implement true afs (Andrew
1056438494Sobrien	f/s) and DFS (Distributed f/s).
1056538494Sobrien
1056638494Sobrien	* amd/amfs_union.c: unionfs for amd is always defined, no need to
1056738494Sobrien	#ifdef it.
1056838494Sobrien
1056938494SobrienMon Jan 26 16:51:38 1998  Erez Zadok  <ezk@chestnut.mcl.cs.columbia.edu>
1057038494Sobrien
1057138494Sobrien	* libamu/mount_fs.c (compute_nfs_args): set 'noconn' NFS option on
1057238494Sobrien	or off, based on the particular quirks of the OS in question.
1057338494Sobrien
1057438494Sobrien	* aux/macros/check_nfs_socket_connection.m4: new macro to set the
1057538494Sobrien	correct wait of handling un/connected NFS sockets.
1057638494Sobrien
1057738494Sobrien	* scripts/wait4amd.in: use rlogin instead of rsh.
1057838494Sobrien
1057938494Sobrien	* amd/am_ops.c (ops_showfstypes): when showing F/S types in amd
1058038494Sobrien	-v, always show "nfs3" for NFS V.3.
1058138494Sobrien
1058238494Sobrien1998-01-25  Erez Zadok  <ezk@snoopy.cs.columbia.edu>
1058338494Sobrien
1058438494Sobrien	* lots of small fixes for solaris 2.6, since gcc 2.8.0 -Wall gets
1058538494Sobrien	more picky than 2.7.2.3 did.
1058638494Sobrien
1058738494Sobrien1998-01-24  Erez Zadok  <ezk@snoopy.cs.columbia.edu>
1058838494Sobrien
1058938494Sobrien	* include/am_utils.h (dlog): amuDebug macros reduced to shorter
1059038494Sobrien	forms.
1059138494Sobrien
1059238494SobrienFri Jan 23 18:38:30 1998  Erez Zadok  <ezk@goat.mcl.cs.columbia.edu>
1059338494Sobrien
1059438494Sobrien	* released snapshot am-utils-6.0a16s3
1059538494Sobrien
1059638494Sobrien	* include/am_defs.h: on Solaris 2.6, <sys/varargs.h> is included
1059738494Sobrien	in <sys/fs/autofs.h> but since stdargs.h is used, and varargs.h
1059838494Sobrien	must not, fake a definition for varargs.
1059938494Sobrien
1060038494SobrienFri Jan 16 10:16:40 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1060138494Sobrien
1060238494Sobrien	* README: show how to configure in additional support such as
1060338494Sobrien	hesiod using various --enable-* flags.
1060438494Sobrien
1060538494SobrienWed Jan 14 15:13:02 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1060638494Sobrien
1060738494Sobrien	* aux/configure.in: look for strcasecmp(), and replace it if not
1060838494Sobrien	available.
1060938494Sobrien
1061038494Sobrien	* amd/ops_nfsl.c (nfsl_match): host names should be compared using
1061138494Sobrien	case insensitive.
1061238494Sobrien
1061338494Sobrien	* amd/opts.c: for each map variable, define if the comparison
1061438494Sobrien	needs to be done case insensitive.
1061538494Sobrien
1061638494Sobrien	* include/am_utils.h (STRCEQ): a new macro to use strcasecmp().
1061738494Sobrien	Patch from Thomas Richter <richter@chemie.fu-berlin.de>
1061838494Sobrien
1061938494Sobrien1998-01-14  Erez Zadok  <ezk@irt.cs.columbia.edu>
1062038494Sobrien
1062138494Sobrien	* aux/configure.in: look for "isofs" as a possible mount type for
1062238494Sobrien	cdfs (RedHat Linux).
1062338494Sobrien
1062438494SobrienWed Jan 14 02:07:05 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1062538494Sobrien
1062638494Sobrien	* conf/mount/mount_linux.c (parse_opts): don't look for cdfs mount
1062738494Sobrien	type if not defined.
1062838494Sobrien
1062938494Sobrien	* conf/nfs_prot/nfs_prot_linux.h: don't define __FD_* macros if
1063038494Sobrien	already defined.
1063138494Sobrien
1063238494Sobrien	* aux/configure.in: look for ext2fs before ufs, b/c some linux
1063338494Sobrien	have both.
1063438494Sobrien
1063538494SobrienMon Jan 12 15:43:20 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1063638494Sobrien
1063738494Sobrien	* Makefile.am (snapshot): allow me to install snapshots into the
1063838494Sobrien	ftp directory.
1063938494Sobrien
1064038494Sobrien	* scripts/ctl-hlfsd.in: don't turn on -D mem by default.
1064138494Sobrien
1064238494Sobrien	* amd/get_args.c (get_args): minor bug in output of amd -H.
1064338494Sobrien
1064438494SobrienMon Jan 12 03:05:06 1998  Erez Zadok  <ezk@chestnut.mcl.cs.columbia.edu>
1064538494Sobrien
1064638494Sobrien	*******************************************************************
1064738494Sobrien	*** Released am-utils-6.0a15					***
1064838494Sobrien	*******************************************************************
1064938494Sobrien
1065038494SobrienSun Jan 11 15:06:34 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1065138494Sobrien
1065238494Sobrien	* amd/conf.c (*_browsable_dirs): allow specifying
1065338494Sobrien	browsable_dirs=full, which will print *all* entries (other than
1065438494Sobrien	/default), including  those with '*' and '/' characters.
1065538494Sobrien
1065638494Sobrien	* amd/info_file.c (MAX_LINE_LEN): up maximum readdir chain length
1065738494Sobrien	to 1500.
1065838494Sobrien
1065938494Sobrien	* doc/am-utils.texi: fixed reversed documentation for NFS mount
1066038494Sobrien	options vers and proto.
1066138494Sobrien
1066238494Sobrien	* doc/Makefile.am (install-html): separate target just for
1066338494Sobrien	installing html files.  Another new target "alldocs" is just for
1066438494Sobrien	installing all files needed for the am-utils home page.
1066538494Sobrien
1066638494Sobrien	* scripts/amd.conf-sample: updated example for log_file.
1066738494Sobrien
1066838494Sobrien	* scripts/amd.conf.5: updated for new way to declare new syslog
1066938494Sobrien	facility in the log_file option.
1067038494Sobrien
1067138494Sobrien	* amd/amd.8: updated for new way to declare new syslog facility in
1067238494Sobrien	the -l option.
1067338494Sobrien
1067438494Sobrien	* libamu/xutil.c (get_syslog_facility): allow users to specify the
1067538494Sobrien	syslog facility as an appended string to the log device.  Ex. amd
1067638494Sobrien	-l syslog:local7 will use LOG_LOCAL7, while the older -l syslog
1067738494Sobrien	will use the default LOG_DAEMON facility.
1067838494Sobrien
1067938494Sobrien	* amd/get_args.c (get_args): updated new syntax for amd -l
1068038494Sobrien	syslog:facility.
1068138494Sobrien
1068238494SobrienThu Jan  8 04:05:10 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1068338494Sobrien
1068438494Sobrien	* aux/macros/host_macros.m4: don't confuse sun3 (sparc) with sun3
1068538494Sobrien	(intel).
1068638494Sobrien
1068738494Sobrien	* libamu/wire.c (print_wires): bug fix.  Nullify output buffer
1068838494Sobrien	before appending to it, on systems with two or more network
1068938494Sobrien	interfaces.
1069038494Sobrien
1069138494Sobrien	* conf/nfs_prot/nfs_prot_sunos5_3.h: add missing definition for
1069238494Sobrien	the mntent for cachefs.
1069338494Sobrien
1069438494Sobrien	* include/am_defs.h: external definition for strstr() should use
1069538494Sobrien	const for both arguments.
1069638494Sobrien
1069738494Sobrien	* aux/configure.in: add extern definitions for getwd() if missing.
1069838494Sobrien
1069938494Sobrien	* include/am_defs.h: define the extern for strdup() even if the
1070038494Sobrien	function does not exist, for it will be filled in by
1070138494Sobrien	libamu/strdup.c
1070238494Sobrien
1070338494Sobrien	* amq/pawd.c (cluster_server): don't use getccent() if the extern
1070438494Sobrien	for it isn't there.  On hpux 10.20, the function is in libc, but
1070538494Sobrien	<cluster.h> and struct cct_entry do not exist.
1070638494Sobrien
1070738494Sobrien	* aux/configure.in: check for an extern for getccent() b/c some
1070838494Sobrien	hpux systems don't have it (hpux 10.20).
1070938494Sobrien
1071038494SobrienWed Jan  7 00:09:19 1998  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1071138494Sobrien
1071238494Sobrien	* doc/am-utils.texi (Amq -T option): manual documentation updates
1071338494Sobrien	for new amq options -T/-U.
1071438494Sobrien
1071538494Sobrien	* amq/amq.8: updated man page for new amq options -T/-U.
1071638494Sobrien
1071738494Sobrien	* amq/amq.c: two new switches to amq. -U will contact amd using
1071838494Sobrien	UDP only.  -T will use TCP only.  Normally amq will try TCP and
1071938494Sobrien	if that failed, will try UDP.
1072038494Sobrien
1072138494Sobrien	* doc/am-utils.texi (pawd): manual documentation for pawd.
1072238494Sobrien
1072338494Sobrien	* amq/pawd.1: new man page for pawd.
1072438494Sobrien
1072538494SobrienTue Jan  6 04:21:59 1998  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1072638494Sobrien
1072738494Sobrien	* amq/pawd.c: a new program, Print Automounter Working Directory,
1072838494Sobrien	to print the proper pathname of the cwd or any other pathname,
1072938494Sobrien	adjusted for automounter paths, while avoiding mount points.
1073038494Sobrien
1073138494Sobrien	* aux/macros/localconfig.m4: trivial support for am-utils
1073238494Sobrien	maintainers to adjust some of the configuration of am-utils after
1073338494Sobrien	it has been auto-configured by putting whatever definitions you
1073438494Sobrien	wish in a file called localconfig.h, located in the top build
1073538494Sobrien	directory (the same one where config.h is created for you).
1073638494Sobrien
1073738494Sobrien	* doc/am-utils.texi (Caching Filesystem): updated documents for
1073838494Sobrien	cachefs file system.
1073938494Sobrien
1074038494Sobrien	* amd/ops_cachefs.c: initial cachefs support, for solaris.
1074138494Sobrien	type:=cachefs, requires cachedir:=/cache/dir/name to be defined
1074238494Sobrien	and initialized with cfsadmin -c.  $rfs is backdir to be cached
1074338494Sobrien	from, and $fs is the local mount point of the cachefs.
1074438494Sobrien
1074538494Sobrien	* conf/mount/mount_svr4.c (mount_svr4): support mounting of
1074638494Sobrien	cachefs file systems.
1074738494Sobrien
1074838494Sobrien	* amd/ops_cdfs.c: cdfs should be named 'cdfs', not whatever the
1074938494Sobrien	mnttab type is.
1075038494Sobrien
1075138494SobrienMon Jan  5 23:22:49 1998  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1075238494Sobrien
1075338494Sobrien	* amd/opts.c: added support for new variable $cachedir.
1075438494Sobrien
1075538494Sobrien	* include/am_utils.h: added opt_cachedir field to struct am_opts.
1075638494Sobrien
1075738494SobrienSat Jan  3 01:43:57 1998  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1075838494Sobrien
1075938494Sobrien	* amd/ops_nfsl.c (nfsl_ffserver, nfsl_match): also check if the
1076038494Sobrien	local hostname does not match $rhost, and if so, also assume
1076138494Sobrien	type:=nfs.
1076238494Sobrien
1076338494SobrienFri Jan  2 01:00:40 1998  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1076438494Sobrien
1076538494Sobrien	* updated all source files to add 1998 as a copyright year.
1076638494Sobrien
1076738494Sobrien	* amd/ops_nfsl.c: new amd meta file system "type:=nfsl".  Behaves
1076838494Sobrien	like type:=linkx if the pathname denoted by $fs exists, and like
1076938494Sobrien	type:=nfs if it does not.  A convenient shortcut for the most
1077038494Sobrien	popular amd map entry.
1077138494Sobrien
1077238494Sobrien	* amd/amd.c (main): amd should chdir to / before starting, to
1077338494Sobrien	avoid hanging on other NFS server if started elsewhere.
1077438494Sobrien
1077538494Sobrien	* amd/ops_TEMPLATE.c: added an empty template file for developers
1077638494Sobrien	who wish to write new amd pseudo file systems.
1077738494Sobrien
1077838494SobrienThu Jan  1 00:27:28 1998  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1077938494Sobrien
1078038494Sobrien	* hlfsd/homedir.c (plt_init): make function exported, to save on
1078138494Sobrien	the unnecessary init_homedir() function which was removed.
1078238494Sobrien	(table_add): don't use xmalloc() when you can use strdup()
1078338494Sobrien	instead.
1078438494Sobrien
1078538494SobrienThu Jan  1 00:15:58 1998  Erez Zadok  <ezk@chestnut.mcl.cs.columbia.edu>
1078638494Sobrien
1078738494Sobrien	* hlfsd/homedir.c (hlfsd_endpwent): Don't actually run this
1078838494Sobrien	because we will be making more passwd calls afterwards.  On
1078938494Sobrien	Solaris 2.5.1, making getpwent() calls after calling endpwent()
1079038494Sobrien	results in a memory leak! (and no, even Purify didn't detect
1079138494Sobrien	it...)
1079238494Sobrien
1079338494SobrienTue Dec 23 18:23:47 1997  Erez Zadok  <ezk@chestnut.mcl.cs.columbia.edu>
1079438494Sobrien
1079538494Sobrien	* hlfsd/hlfsd.c (main): Bug fix.  Don't try to free() an
1079638494Sobrien	automatically allocated address.
1079738494Sobrien
1079838494Sobrien	* amd/ops_afs.c (mount_toplvl): Bug fix.  Don't try to free() an
1079938494Sobrien	automatically allocated address.
1080038494Sobrien
1080138494Sobrien	* ALL SOURCES: change every direct call to free() to xfree(), so
1080238494Sobrien	it can be mapped to the right debugging function as needed.
1080338494Sobrien
1080438494Sobrien	* include/am_utils.h: new free() policy.  If debugging memory,
1080538494Sobrien	call dxfree(), which will print the file name and line number
1080638494Sobrien	where the free occurred and the pointer address.  if only regular
1080738494Sobrien	debugging, then free() and reset  the pointer to NULL so it cannot
1080838494Sobrien	be used afterwards inadvertently.  If not DEBUG at all, then just
1080938494Sobrien	run free().  Three different #define macros set the right mapping.
1081038494Sobrien
1081138494Sobrien	* libamu/xutil.c (dxfree): renamed function to dxfree(), so it can
1081238494Sobrien	be called only when debugging the memory.
1081338494Sobrien
1081438494SobrienTue Dec 23 04:24:28 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1081538494Sobrien
1081638494Sobrien	* wire-test/wire-test.c (main): use xmalloc() not malloc().
1081738494Sobrien
1081838494Sobrien	* conf/transp/transp_tli.c (get_knetconfig): use xzalloc() not
1081938494Sobrien	calloc().
1082038494Sobrien
1082138494Sobrien	* conf/mtab/mtab_mach3.c (convert): use xzalloc() not calloc().
1082238494Sobrien
1082338494Sobrien	* conf/mount/mount_linux.c (parse_opts): use xmalloc() not
1082438494Sobrien	malloc().
1082538494Sobrien
1082638494Sobrien	* amd/info_ldap.c: use xmalloc() not malloc().
1082738494Sobrien
1082838494Sobrien	* libamu/xutil.c (xzalloc): new function to allocate memory and
1082938494Sobrien	zero its bytes.
1083038494Sobrien
1083138494Sobrien	* amq/amq.c: amq does not need its own definition of xfree().
1083238494Sobrien
1083338494Sobrien	* aux/macros/opt_debug.m4: if used --enable-debug=mem, then also
1083438494Sobrien	look for function malloc_verify() in libmapmalloc.a, and function
1083538494Sobrien	mallinfo() in libmalloc.
1083638494Sobrien
1083738494Sobrien	* libamu/xutil.c (checkup_mem): do not use mallinfo field
1083838494Sobrien	uordbytes, because it does not always exist.  Rather, compute it
1083938494Sobrien	from other fields..
1084038494Sobrien
1084138494Sobrien	* include/am_utils.h: add external definition to xfree() function
1084238494Sobrien	used when debugging memory references.
1084338494Sobrien
1084438494SobrienMon Dec 22 03:01:30 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1084538494Sobrien
1084638494Sobrien	* amd/ops_afs.c (afs_readdir_browsable): reduce the number of
1084738494Sobrien	bytes heuristically computed to be returned to the kernel.
1084838494Sobrien	Otherwise browsable_dirs fails on OpenBSD 2.2.
1084938494Sobrien
1085038494Sobrien	* amd/mntfs.c (uninit_mntfs): bug fix.  Moved freeing of
1085138494Sobrien	mf_private field to AFTER it gets used.
1085238494Sobrien
1085338494SobrienSat Dec 20 00:51:21 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1085438494Sobrien
1085538494Sobrien	* amd/ops_host.c (host_umounted): don't use clnt_spcreateerror()
1085638494Sobrien	on systems that don't support it.
1085738494Sobrien
1085838494Sobrien	* include/am_defs.h: add missing extern definition for free().
1085938494Sobrien
1086038494Sobrien	* aux/configure.in: check for external definition for free().
1086138494Sobrien
1086238494Sobrien	* libamu/Makefile.am: add to comment a mention of strstr as an
1086338494Sobrien	optional function.
1086438494Sobrien
1086538494Sobrien	* libamu/xutil.c (switch_to_logfile): use openlog() options only
1086638494Sobrien	if they exist.
1086738494Sobrien
1086838494Sobrien	* conf/transp/transp_sockets.c (get_nfs_version): don't use
1086938494Sobrien	clnt_spcreateerror if it does not exist.
1087038494Sobrien
1087138494Sobrien	* aux/configure.in: check for missing functions clnt_create and
1087238494Sobrien	clnt_spcreateerror.  Check for missing strstr, and complete
1087338494Sobrien	its code.  Check for missing external definition for strstr.
1087438494Sobrien
1087538494Sobrien	* aux/macros/host_macros.m4: normalize sun3* names.
1087638494Sobrien
1087738494Sobrien	* Makefile.am: updates for new sunos3 files distributed.
1087838494Sobrien
1087938494Sobrien	* conf/nfs_prot/nfs_prot_sunos3.h: new file.
1088038494Sobrien
1088138494Sobrien	* conf/fh_dref/fh_dref_sunos3.h: new file.
1088238494Sobrien
1088338494Sobrien	* aux/macros/check_nfs_prot_headers.m4: added sunos3 case.
1088438494Sobrien
1088538494Sobrien	* aux/macros/check_nfs_fh_dref.m4: added sunos3 case.
1088638494Sobrien
1088738494Sobrien	* doc/am-utils.texi (wire Selector Variable): updated manual for
1088838494Sobrien	adjusted variables wire, network, and netnumber, all using the
1088938494Sobrien	in_network() function.
1089038494Sobrien
1089138494SobrienFri Dec 19 04:37:36 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1089238494Sobrien
1089338494Sobrien	* amd/opts.c: allow options to be processed by executing arbitrary
1089438494Sobrien	functions.  Converted wire, network, and netnumber all to use the
1089538494Sobrien	nomadic function in_network.  So from now on they perform a match
1089638494Sobrien	against all networks, not just primary.
1089738494Sobrien
1089838494Sobrien	* initial port to alpha-unknown-linux-gnu, probably works, but
1089938494Sobrien	untested yet.
1090038494Sobrien
1090138494Sobrien	* conf/nfs_prot/nfs_prot_linux.h: add special definitions for
1090238494Sobrien	__FD_* macros which for som strange reason do not get included
1090338494Sobrien	from <selectbits.h> on redhat alpha linux.  Also turn off usage of
1090438494Sobrien	<rpc/des_auth.h> because it is incomplete on the same systems.
1090538494Sobrien
1090638494Sobrien	* hlfsd/homedir.c (table_add): cast uid field to int, for
1090738494Sobrien	comparison.
1090838494Sobrien
1090938494Sobrien	* include/am_defs.h: more coflicts with redhat alpha linux
1091038494Sobrien	"resolved".
1091138494Sobrien
1091238494Sobrien	* aux/macros/{mount_headers,try_compile_anyfs,try_compile_nfs}.m4:
1091338494Sobrien	There's a conflict of definitions on redhat alpha linux between
1091438494Sobrien	<netinet/in.h> and <linux/fs.h> which must be avoided.
1091538494Sobrien
1091638494Sobrien	* aux/configure.in: check for <socketbits.h>, which is in use on
1091738494Sobrien	redhat alpha linux.
1091838494Sobrien
1091938494Sobrien	* doc/am-utils.texi (Selectors): added documentation to describe
1092038494Sobrien	the new "!" (negated) nomadic functions.
1092138494Sobrien
1092238494Sobrien	* amd/opts.c (f_in_network): print debugging info that is correct,
1092338494Sobrien	rather than saying that any ARG is on a local network.
1092438494Sobrien	(eval_opts): added support for negating nomadic functions, by
1092538494Sobrien	prepending "!" to their name.  Example, !exists(/foo/bar).
1092638494Sobrien
1092738494SobrienThu Dec 18 20:57:19 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1092838494Sobrien
1092938494Sobrien	* include/am_compat.h: ensure that all NFS3 systems have the mount
1093038494Sobrien	table entries (and amd opts switches) "proto" and "vers".
1093138494Sobrien
1093238494Sobrien	* hlfsd/homedir.c (table_add): added some debugging info to try
1093338494Sobrien	and track down a serious memory leak in hlfsd.
1093438494Sobrien
1093538494Sobrien1997-12-18  Erez Zadok  <ezk@t-rex.mcl.cs.columbia.edu>
1093638494Sobrien
1093738494Sobrien	* libamu/mount_fs.c (compute_nfs_args): OpenBSD 2.2 requires that
1093838494Sobrien	you do NOT set the noconn option, and use connected sockets
1093938494Sobrien	always.  So I'm now forced not to set it at all, and have the user
1094038494Sobrien	specify it as "conn" or "noconn" in their /default entry.  Argh...
1094138494Sobrien	Finally, it looks as if OpenBSD 2.2's NFS 3 implementation may be
1094238494Sobrien	buggy (TCP hangs with "short receive" kernel errors).  I'd better
1094338494Sobrien	wait until they get it working in their version of the automounter
1094438494Sobrien	first.  So I'm putting the "noconn" option back.
1094538494Sobrien
1094638494SobrienThu Dec 18 02:39:39 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1094738494Sobrien
1094838494Sobrien	* libamu/mount_fs.c (compute_nfs_args): use maxgrps option and set
1094938494Sobrien	nfs_args field maxgrouplist accordingly.
1095038494Sobrien
1095138494Sobrien	* include/am_compat.h (MNTTAB_OPT_MAXGROUPS): complete definition
1095238494Sobrien	for mount table entry for maxgroups based on NFS mount option
1095338494Sobrien	maxgrp.
1095438494Sobrien
1095538494Sobrien	* aux/configure.in: put back testing for NFS mount option
1095638494Sobrien	"maxgrps".  Added test for mount table entry "maxgroups".
1095738494Sobrien
1095838494Sobrien	* libamu/mount_fs.c (compute_nfs_args): perform more careful tests
1095938494Sobrien	on nfs_proto, because it could be NULL.
1096038494Sobrien
1096138494Sobrien	* doc/am-utils.texi (Selectors): added example of in_network()
1096238494Sobrien	selector.
1096338494Sobrien
1096438494Sobrien	* aux/macros/check_hide_mount_type.m4: all hpux versions,
1096538494Sobrien	including 9.x, should use "ignore" as the mount type to hide from
1096638494Sobrien	amd.
1096738494Sobrien
1096838494SobrienWed Dec 17 13:09:21 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1096938494Sobrien
1097038494Sobrien	* include/am_utils.h (NSTREQ): use new macro instead of strncmp()
1097138494Sobrien	every where in the sources.
1097238494Sobrien
1097338494SobrienWed Dec 17 01:15:01 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1097438494Sobrien
1097538494Sobrien	* libamu/mount_fs.c (print_nfs_args): if -D trace is on, will
1097638494Sobrien	print as much info that is given in struct nfs_args as possible.
1097738494Sobrien	useful for detecting internal flags and options, as well as the
1097838494Sobrien	file handle used.
1097938494Sobrien
1098038494Sobrien	* scripts/ctl-amd.in: look for amd.conf file in ${prefix}/etc
1098138494Sobrien	after /etc and before /etc/local.
1098238494Sobrien
1098338494SobrienTue Dec 16 18:51:36 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1098438494Sobrien
1098538494Sobrien	* aux/configure.in, libamu/Makefile.am: added support for linking
1098638494Sobrien	with specific versions of libamu.  Upped shared library version of
1098738494Sobrien	libamu to 1 (libamu.so.1.0.0)
1098838494Sobrien
1098938494Sobrien	* include/am_defs.h: added external definition for mkstemp() as
1099038494Sobrien	needed.
1099138494Sobrien
1099238494Sobrien	* minor new port to i386-unknown-netbsd1.3 (BETA version of
1099338494Sobrien	netbsd).
1099438494Sobrien
1099538494Sobrien	* aux/config.guess: don't leave a trailing '.' on the system name
1099638494Sobrien	for NetBSD-1.3_BETA and similarly for OpenBSD.
1099738494Sobrien
1099838494Sobrien	* conf/nfs_prot/nfs_prot_netbsd1_3.h: new header for the slight
1099938494Sobrien	differences in ypall calling conventions.
1100038494Sobrien
1100138494Sobrien	* mk-amd-map/mk-amd-map.c (main): use mkstemp() whenever possible
1100238494Sobrien	in preference over mktemp(), b/c it is more secure.
1100338494Sobrien
1100438494Sobrien	* aux/configure.in: check for mkstemp(), a more secure version of
1100538494Sobrien	mktemp().
1100638494Sobrien
1100738494SobrienMon Dec 15 02:32:14 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1100838494Sobrien
1100938494Sobrien	* amd/ops_nfs.c (mount_nfs_fh): Systems that include the mount
1101038494Sobrien	table "vers" option generally do not set the mnttab entry to
1101138494Sobrien	"nfs3", but to "nfs" and then they set "vers=3".  Setting it to
1101238494Sobrien	"nfs3" works, but it may break some things like "df -t nfs" and
1101338494Sobrien	the "quota" program (esp. on Solaris and Irix).  So on those
1101438494Sobrien	systems, set it to "nfs".
1101538494Sobrien
1101638494SobrienSat Dec 13 01:36:27 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1101738494Sobrien
1101838494Sobrien	* doc/am-utils.texi (Distrib): updates for new ports, location of
1101938494Sobrien	am-utils' home page, and URL cross references (now supported by my
1102038494Sobrien	version of texi2html).
1102138494Sobrien
1102238494Sobrien	* aux/macros/check_mtype_type.m4: also use string type for file
1102338494Sobrien	system mount types under nextstep for mount(2).
1102438494Sobrien
1102538494Sobrien	* aux/macros/check_mtype_printf_type.m4}: nextstep can handle both
1102638494Sobrien	integer and string types for file system mount types in mount(2),
1102738494Sobrien	but it is better to use string types.
1102838494Sobrien
1102938494Sobrien	* conf/nfs_prot/nfs_prot_nextstep.h: set emum nfsstat's NFS_OK to
1103038494Sobrien	0, not 1!  Otherwise, all NFS calls (esp. mount) return errno 1
1103138494Sobrien	(EPERM) instead of 0 (OK).  Fixes m68k-next-nextstep3 which now
1103238494Sobrien	works.
1103338494Sobrien
1103438494Sobrien	* conf/nfs_prot/nfs_prot_bsdi2.h: set emum nfsstat's NFS_OK to 0,
1103538494Sobrien	not 1!  Otherwise, all NFS calls (esp. mount) return errno 1
1103638494Sobrien	(EPERM) instead of 0 (OK).
1103738494Sobrien
1103838494Sobrien	* libamu/xdr_func.c (xdr_*): add debugging calls that are optioned
1103938494Sobrien	by -D trace (protocol trace).
1104038494Sobrien
1104138494Sobrien1997-12-11  Erez Zadok  <ezk@bach.cs.columbia.edu>
1104238494Sobrien
1104338494Sobrien	* A.m68k-next-nextstep3/amu_nfs_prot.h: define missing S_ISDIR
1104438494Sobrien	macro based on existence on others, and include <sys/stat.h>.
1104538494Sobrien
1104638494SobrienThu Dec 11 14:14:38 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1104738494Sobrien
1104838494Sobrien	* aux/macros/try_compile_nfs.m4 (AC_TRY_COMPILE): turn off
1104938494Sobrien	inclusion of <nfs/nfs_mount.h> which only affects nextstep3, on
1105038494Sobrien	which this header is broken (it tries to include non-existing
1105138494Sobrien	headers).
1105238494Sobrien
1105338494SobrienWed Dec 10 16:09:07 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1105438494Sobrien
1105538494Sobrien	* libamu/mount_fs.c (mnt_flags): support either nfs or generic
1105638494Sobrien	mount option for grpid.
1105738494Sobrien
1105838494Sobrien	* aux/configure.in: turn back on NFS mount option grpid.
1105938494Sobrien
1106038494SobrienSat Dec  6 04:36:05 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1106138494Sobrien
1106238494Sobrien	* doc/Makefile.am (install-ps): added target to install postscript
1106338494Sobrien	file in the am-utils' home page, as well as a few other useful
1106438494Sobrien	files for the new am-utils Web page.
1106538494Sobrien
1106638494SobrienMon Nov 17 05:22:56 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1106738494Sobrien
1106838494Sobrien	*******************************************************************
1106938494Sobrien	*** Released am-utils-6.0a14					***
1107038494Sobrien	*******************************************************************
1107138494Sobrien
1107238494SobrienSun Nov 16 21:56:16 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1107338494Sobrien
1107438494Sobrien	* doc/am-utils.texi (Supported Platforms): updated table of new
1107538494Sobrien	ports.
1107638494Sobrien
1107738494SobrienSat Nov 15 06:36:27 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1107838494Sobrien
1107938494Sobrien	* libamu/mount_fs.c (compute_automounter_nfs_args): pass mnttab
1108038494Sobrien	options so that they can be printed in logs as needed.
1108138494Sobrien
1108238494Sobrien	* doc/am-utils.texi (osver Parameter): updated for the correct
1108338494Sobrien	usage of the -o/-O options.
1108438494Sobrien
1108538494Sobrien	* scripts/amd.conf.5: corrected info for -o/-O options.
1108638494Sobrien
1108738494Sobrien	* amd/amd.8: updated man page for new -O op_sys_name option, and
1108838494Sobrien	corrected the usage of the -o op_sys_ver option
1108938494Sobrien
1109038494Sobrien	* amd/get_args.c (get_args): added new amd option -O to override
1109138494Sobrien	OS name.
1109238494Sobrien	(get_args): updated usage string.  Removed old -m option.  Added
1109338494Sobrien	-o and -O options.
1109438494Sobrien
1109538494Sobrien	* conf/nfs_prot/nfs_prot_irix5.h: add definition to FHSIZE in case
1109638494Sobrien	it is not there.  Reportedly, irix 5.2 does not define it.
1109738494Sobrien
1109838494Sobrien	* scripts/lostaltmail.in: removed references to unused $hack
1109938494Sobrien	variable.
1110038494Sobrien
1110138494Sobrien	* aux/macros/check_nfs_prot_headers.m4: Patch from Chris Metcalf
1110238494Sobrien	<metcalf@cag.lcs.mit.edu> to correctly set the nfs_prot headers
1110338494Sobrien	for solaris2.5.
1110438494Sobrien
1110538494Sobrien	* doc/am-utils.texi (Distrib): typo in the subscription
1110638494Sobrien	instructions to amd-dev.  Patch from Stefan Vogel
1110738494Sobrien	<vogel@physik-rzu.unizh.ch>.
1110838494Sobrien
1110938494Sobrien1997-11-15  Erez Zadok  <ezk@amtrak.cs.columbia.edu>
1111038494Sobrien
1111138494Sobrien	* NFS3 works on powerpc-ibm-aix4.2.1.0.
1111238494Sobrien
1111338494Sobrien	* libamu/mount_fs.c (compute_nfs_args): set fh3 variable to
1111438494Sobrien	static.  Some compilers (gcc from egcs  on aix 4.2.1) corrupt the
1111538494Sobrien	stack of an automatic variable when pointer to it is passed around
1111638494Sobrien	several times.
1111738494Sobrien
1111838494SobrienFri Nov 14 20:09:28 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1111938494Sobrien
1112038494Sobrien	* libamu/xutil.c (real_plog): syslog like behavior for normal
1112138494Sobrien	logging.  Will not print repeated strings, only a count "last
1112238494Sobrien	message repeated N times", but will always print something if
1112338494Sobrien	message is repeated more than 100 times.
1112438494Sobrien
1112538494Sobrien	* scripts/lostaltmail.in: look for lostaltmail.conf files also in
1112638494Sobrien	/etc/global, /etc/os, and /etc/local (in that order).
1112738494Sobrien
1112838494SobrienMon Nov 10 03:03:17 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1112938494Sobrien
1113038494Sobrien	* conf/mount/mount_aix.c (mount_aix3): add support for NFS V.3
1113138494Sobrien	mounts.
1113238494Sobrien
1113338494Sobrien	* aux/macros/struct_nfs_args.m4 (AC_TRY_COMPILE_NFS): test for
1113438494Sobrien	aix42_nfs_args, specially set in conf/nfs_prot/nfs_prot_aix4_2.h
1113538494Sobrien
1113638494Sobrien	* conf/sa_dref/sa_dref_*.h: from now on, the "dst" argument to the
1113738494Sobrien	NFS_SA_DREF macro is a pointer to the structure that used to be
1113838494Sobrien	passed to it before.  So now I have to dereference the pointer
1113938494Sobrien	before accessing its values.
1114038494Sobrien
1114138494Sobrien	* hlfsd/hlfsd.c (main): use the new and cleaner
1114238494Sobrien	compute_nfs_args() and compute_automounter_nfs_args() functions.
1114338494Sobrien
1114438494Sobrien	* amd/ops_nfs.c (mount_nfs_fh): use the new and cleaner
1114538494Sobrien	compute_nfs_args() and compute_automounter_nfs_args() functions.
1114638494Sobrien
1114738494Sobrien	* amd/ops_afs.c (mount_toplvl): MAJOR CODE REVISION.  Use the new
1114838494Sobrien	and cleaner compute_nfs_args() and compute_automounter_nfs_args()
1114938494Sobrien	functions.
1115038494Sobrien
1115138494Sobrien	* libamu/mount_fs.c (compute_nfs_args): major code cleanup that
1115238494Sobrien	relates for struct nfs_args.  A new function sets the numerous
1115338494Sobrien	possible flags and fields of nfs_args_t in an orderly fashion.
1115438494Sobrien	Code cleaned up, organized, and moved from amd/hlfsd into
1115538494Sobrien	libamu.  This saves on overall size of code.
1115638494Sobrien	(compute_automounter_nfs_args): A variant of compute_nfs_args()
1115738494Sobrien	which sets special options/flags that need to be used when NFS
1115838494Sobrien	mounting an automounter's mount point.  Used by hlfsd and amd.
1115938494Sobrien
1116038494Sobrien	* amq/amq.c (get_secure_amd_client): don't print any more
1116138494Sobrien	"get_secure_amd_client: using TCP, port 12345".  It's more
1116238494Sobrien	annoying than useful a message, even when assumed to be compiled
1116338494Sobrien	under DEBUG only.
1116438494Sobrien
1116538494SobrienThu Oct 30 14:33:38 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1116638494Sobrien
1116738494Sobrien	* aux/macros/check_mnttab_type.m4: MAJOR BUG fixed for non-nfs
1116838494Sobrien	mount table entries.  The code used to define the /etc/mnttab name
1116938494Sobrien	for file systems based on physical media (disk, cdrom, floppy) to
1117038494Sobrien	the generic name, rather than the OS specific name.  For example
1117138494Sobrien	autoconf searches for all these types of mount table entries for a
1117238494Sobrien	floppy based file system: vfat pcfs pc msdos msdosfs fat.  But if
1117338494Sobrien	it found any, it hard-coded the mnttab name to "pcfs" rather than
1117438494Sobrien	the actual name found!  Same for ufs, cdfs, pcfs, tmpfs, lofs,
1117538494Sobrien	nullfs, unionfs, and umapfs.
1117638494Sobrien
1117738494Sobrien	* aux/configure.in: also test for xfs (for newer Irix) when
1117838494Sobrien	looking for mount type names, numbers, etc of a disk-based ufs.
1117938494Sobrien
1118038494SobrienSun Oct 26 19:32:57 1997  Erez Zadok  <ezk@defiant.soscorp.com>
1118138494Sobrien
1118238494Sobrien	* amq/amq.c (main): use pmap_ping() to test if remote host is up.
1118338494Sobrien	This works better on bsdi2 and bsdi3, because their portmapper
1118438494Sobrien	does not appear to like forwarding operations (it is generaly
1118538494Sobrien	insecure).
1118638494Sobrien
1118738494SobrienSat Oct 25 04:55:56 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1118838494Sobrien
1118938494Sobrien	*******************************************************************
1119038494Sobrien	*** Released am-utils-6.0a13					***
1119138494Sobrien	*******************************************************************
1119238494Sobrien
1119338494SobrienFri Oct 24 05:04:37 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1119438494Sobrien
1119538494Sobrien	* conf/nfs_prot/nfs_prot_ncr2.h: added missing definition for
1119638494Sobrien	struct datum typedef.
1119738494Sobrien
1119838494Sobrien	* conf/nfs_prot/nfs_prot_netbsd.h: corrected typedef for
1119938494Sobrien	ypall_callback_fxn_t for netbsd.
1120038494Sobrien
1120138494Sobrien	* aux/macros/type_auth_create_gidlist.m4: hpux10.10 uses int for
1120238494Sobrien	the 5th arg to authunix_create(), while before and after they used
1120338494Sobrien	gid_t.
1120438494Sobrien
1120538494Sobrien	* conf/transp/transp_tli.c (amu_clnt_create_best_vers): don't use
1120638494Sobrien	clnt_create_timed() on older Solaris 2.3 systems that did not have
1120738494Sobrien	it.
1120838494Sobrien
1120938494Sobrien	* conf/nfs_prot/nfs_prot_bsdi2.h: <msdosfs/msdosfsmount.h> is for
1121038494Sobrien	kernel only on bsdi2, so do not include it.
1121138494Sobrien
1121238494SobrienFri Oct 24 00:29:42 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1121338494Sobrien
1121438494Sobrien	* hlfsd/stubs.c (nfsproc_readlink_2_svc): avoid logging repeated
1121538494Sobrien	messages about resolution of mailboxes based on uid/gid.
1121638494Sobrien
1121738494Sobrien	* scripts/ctl-hlfsd.in: check for alternate password file in
1121838494Sobrien	${prefix}/etc/passwd and use it in hlfsd's startup.
1121938494Sobrien
1122038494SobrienThu Oct 23 22:48:50 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1122138494Sobrien
1122238494Sobrien	* hlfsd/homedir.c (hlfsd_getpwent): added support for -P
1122338494Sobrien	passwdfile option.  If hlfsd is started with -P passwdfile, then
1122438494Sobrien	the passwdfile is read and parsed just as a standard unix
1122538494Sobrien	passwd(4) file.  Only the username, uid, and homedir fields are
1122638494Sobrien	read and checked.  All the rest are ignored.  No NIS/netgroup
1122738494Sobrien	support!
1122838494Sobrien
1122938494Sobrien	* hlfsd/hlfsd.c (main): check if hlfsd is run as root after
1123038494Sobrien	parsing command line options, so that usage() can be printed when
1123138494Sobrien	-h is invoked.
1123238494Sobrien
1123338494SobrienWed Oct 22 00:16:39 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1123438494Sobrien
1123538494Sobrien	* amd/nfs_start.c (mount_automounter): if autofs service listener
1123638494Sobrien	fails to initialize it is OK if using a test amd.
1123738494Sobrien
1123838494Sobrien	* amd/opts.c (f_in_network): new nomadic function in_network(arg),
1123938494Sobrien	which returns TRUE if 'arg' is any one of this host's networks.
1124038494Sobrien
1124138494Sobrien	* libamu/wire.c (getwire): rewritten parts of function, to store
1124238494Sobrien	all networks names and numbers in the order of the interface (not
1124338494Sobrien	in reverse).
1124438494Sobrien
1124538494SobrienMon Oct 20 01:59:25 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1124638494Sobrien
1124738494Sobrien	* aux/configure.in: don't add ops_ufs.o on AIX twice.  My code
1124838494Sobrien	would have worked had it not been due to AIX's buggy /bin/sh.
1124938494Sobrien
1125038494Sobrien	* doc/Makefile.am (EXTRA_DIST): include am-utils.dvi and
1125138494Sobrien	am-utils.ps in the distribution sources.
1125238494Sobrien	(html): generate html documentation for
1125382794Sobrien	http://www.am-utils.org
1125438494Sobrien
1125538494SobrienSun Oct 19 12:35:49 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1125638494Sobrien
1125738494Sobrien	* conf/nfs_prot/nfs_prot_netbsd.h: override the definition of
1125838494Sobrien	ypall_callback_fxn_t.  The NetBSD team compiles all sources with
1125938494Sobrien	gcc -Wall -Wmissing-prototypes -Wstrict-prototypes.
1126038494Sobrien
1126138494Sobrien	* amd/info_nis.c: allow for override of ypall_callback_fxn_t
1126238494Sobrien	function typedef.
1126338494Sobrien
1126438494Sobrien	* libamu/xutil.c (amu_release_controlling_tty): new function to
1126538494Sobrien	release the controlling tty in a clean and sane manner.  No longer
1126638494Sobrien	using setpgid() b/c it may not work.  Uses setsid(),
1126738494Sobrien	and ioctl() (in order).  This new function is used in amd/amd.c
1126838494Sobrien	and hlfsd/hlfsd.c.  Also avoid setpgrp(), because it works on some
1126938494Sobrien	systems, but on others it is the same as setpgid().
1127038494Sobrien
1127138494SobrienSat Oct 18 23:42:40 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1127238494Sobrien
1127338494Sobrien	* aux/acconfig.h: check for nfs mount option 'fsname'.  Code for
1127438494Sobrien	it was in amd/ops_afs.c, amd/ops_nfs.c, and hlfsd/hlfsd.c, but
1127538494Sobrien	never used, because the configure test for fsname flag wasn't
1127638494Sobrien	used.  This fixed a bug in HPUX 10, where syncer and manual mounts
1127738494Sobrien	left blank lines in /etc/mnttab.
1127838494Sobrien
1127938494Sobrien	* aux/configure.in: check for nfs mount option 'fsname'.
1128038494Sobrien
1128138494SobrienFri Oct 17 13:30:27 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1128238494Sobrien
1128338494Sobrien	* amd/ops_afs.c (mount_toplvl): turn on 'ignore' option in nfs
1128438494Sobrien	mount flags of toplvl mounts.  Important esp. for HPUX 10.  Now
1128538494Sobrien	hpux-10 will mount amd's mounts points as 'ignore' (by df).
1128638494Sobrien
1128738494Sobrien	* aux/configure.in: check for NFS mount option 'ignore', useful in
1128838494Sobrien	HPUX 10.
1128938494Sobrien
1129038494SobrienThu Oct 16 03:28:33 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1129138494Sobrien
1129238494Sobrien	* aux/macros/check_hide_mount_type.m4: hpux 10 should use "ignore"
1129338494Sobrien	mount type and not NFS, for the amd mount points.
1129438494Sobrien
1129538494Sobrien	* conf/transp/transp_tli.c (amu_clnt_create_best_vers): don't log
1129638494Sobrien	an RPC timeout as an error, but just an info message.  From
1129738494Sobrien	Andreas Stolcke <stolcke@speech.sri.com>
1129838494Sobrien
1129938494Sobrien	* If the NFS server is down or does not support the portmapper
1130038494Sobrien	call (such as certain Novell NFS servers) we mark it as version 2
1130138494Sobrien	and we let the nfs code deal with the case that is down.  If when
1130238494Sobrien	the server comes back up, it can support NFS V.3 and/or TCP, it
1130338494Sobrien	will use those.  From christos@deshaw.com (Christos Zoulas).
1130438494Sobrien
1130538494Sobrien	* hlfsd/homedir.c (plt_print): various compile time cleanups to
1130638494Sobrien	printfs that take a long, but pass an int to print.  From
1130738494Sobrien	christos@deshaw.com (Christos Zoulas).
1130838494Sobrien
1130938494Sobrien	* aux/macros/func_bad_yp_all.m4 (ac_cv_func_yp_all_clean,): new
1131038494Sobrien	macro to determine if the OS has a bad yp_all(), based on the host
1131138494Sobrien	OS name.  So far only irix (all versions) have a bad yp_all, so
1131238494Sobrien	they will use am_yp_all() instead (which is slower as it
1131338494Sobrien	enumerates manually all of the map's entries).
1131438494Sobrien
1131538494SobrienThu Oct 16 03:14:37 1997  Erez Zadok  <ezk@subzero.cs.columbia.edu>
1131638494Sobrien
1131738494Sobrien	* amd/info_nis.c (am_yp_all): code for a replacement yp_all that
1131838494Sobrien	avoids using a file-descriptor leaking yp_all() on some systems
1131938494Sobrien	like irix.
1132038494Sobrien
1132138494SobrienWed Oct 15 21:52:35 1997  Erez Zadok  <ezk>
1132238494Sobrien
1132338494Sobrien	* fsinfo/fsinfo.h: avoid redefining yywrap incorrectly on DU-4.x
1132438494Sobrien	systems using /usr/bin/flex.
1132538494Sobrien
1132638494Sobrien	* amd/conf_tok.l (yywrap): avoid redefining yywrap for systems
1132738494Sobrien	that have a modified GNU flex which does define yywrap (DU-4.x).
1132838494Sobrien
1132938494SobrienFri Sep 26 14:25:29 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1133038494Sobrien
1133138494Sobrien	* conf/checkmount/checkmount_bsd44.c: include prototype.
1133251292Sobrien
1133351292SobrienFri Sep 26 01:26:24 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1133451292Sobrien
1133551292Sobrien	*******************************************************************
1133651292Sobrien	*** Released am-utils-6.0a12					***
1133751292Sobrien	*******************************************************************
1133851292Sobrien
1133951292SobrienFri Sep 26 00:13:48 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1134051292Sobrien
1134151292Sobrien	* conf/nfs_prot/nfs_prot_irix6.h: completely turn off all autofs
1134251292Sobrien	code in irix6 until it can be tested correctly
1134351292Sobrien
1134451292Sobrien	* conf/transp/transp_tli.c (amu_clnt_create_best_vers): time out
1134551292Sobrien	on clnt_create for 3 seconds, rather than wait for the much longer
1134651292Sobrien	default.
1134751292Sobrien
1134851292Sobrien	* conf/nfs_prot/nfs_prot_aix4_2.h: port to powerpc-ibm-aix4.2.1.0.
1134951292Sobrien	Includes NFS3, untested.
1135051292Sobrien
1135151292SobrienThu Sep 25 11:03:11 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1135251292Sobrien
1135351292Sobrien	* amd/ops_pcfs.c (mount_pcfs): fill in uid/gid fields of
1135451292Sobrien	pcfs_args_t if they exist.
1135551292Sobrien
1135651292Sobrien	* amd/ops_cdfs.c (mount_cdfs): fill in ssector field of
1135751292Sobrien	cdfs_args_t if it exists.
1135851292Sobrien
1135951292Sobrien	* new minor ports hppa1.1-hp-hpux10.10, hppa1.1-hp-hpux9.05,
1136051292Sobrien	hppa1.1-hp-hpux9.07, m68k-hp-hpux9.00, and sparc-sun-sunos4.1.4.
1136151292Sobrien
1136251292SobrienWed Sep 24 00:48:05 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1136351292Sobrien
1136451292Sobrien	* doc/am-utils.texi (wire-test): updated documentation for the new
1136551292Sobrien	option.
1136651292Sobrien
1136751292Sobrien	* wire-test/wire-test.8: updated man page for new option.
1136851292Sobrien
1136951292Sobrien	* wire-test/wire-test.c (main): added a test for various
1137051292Sobrien	combinations of NFS proto/vers to a remote/local host.
1137151292Sobrien
1137251292Sobrien	* aux/macros/try_compile_anyfs.m4 (AC_TRY_COMPILE): include
1137351292Sobrien	<isofs/cd9660/cd9660_mount.h> and <msdosfs/msdosfsmount.h> so that
1137451292Sobrien	freebsd will correctly set mount options for pcfs and cdfs.
1137551292Sobrien
1137651292Sobrien	* amd/ops_pcfs.c (mount_pcfs): set mask field of pcfs_args to
1137751292Sobrien	0777 (if field exists).
1137851292Sobrien
1137951292Sobrien	* aux/macros/try_compile_anyfs.m4 (AC_TRY_COMPILE): include
1138051292Sobrien	<msdosfs/msdosfsmount.h> if available.
1138151292Sobrien
1138251292Sobrien	* minor new port: rs6000-ibm-aix4.1.4.0.
1138351292Sobrien
1138451292Sobrien	* libamu/mount_fs.c (mount_fs): fixed bug that caused HPUX not to
1138551292Sobrien	write the "time" field in /etc/mnttab.
1138651292Sobrien
1138751292Sobrien	* conf/mtab/mtab_file.c (mnt_dup): fixed typo in macro names for
1138851292Sobrien	detecting mnt_time field of mntent_t.
1138951292Sobrien
1139051292Sobrien	* libamu/mtab.c (mnt_free): fixed typo in macro names for
1139151292Sobrien	detecting mnt_time field of mntent_t.
1139251292Sobrien
1139351292SobrienTue Sep 23 15:30:03 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1139451292Sobrien
1139551292Sobrien	* conf/mtab/mtab_file.c (lock): Use flock() in preference over
1139651292Sobrien	fcntl() to lock the mtab file.
1139751292Sobrien
1139851292SobrienMon Sep 22 23:04:58 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1139951292Sobrien
1140051292Sobrien	* conf/transp/transp_sockets.c (get_nfs_version): define
1140151292Sobrien	the try_again goto label only for NFS3.
1140251292Sobrien	(pmap_ping): assume timeout failure of clnt_stat.
1140351292Sobrien
1140451292Sobrien	* libamu/xdr_func.c (xdr_groupnode, xdr_exportnode): cast to
1140551292Sobrien	"groups *".
1140651292Sobrien
1140751292SobrienMon Sep 22 20:34:33 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1140851292Sobrien
1140951292Sobrien	* conf/transp/transp_sockets.c (pmap_ping): patch from Dan Riley
1141051292Sobrien	<dsr@mail.lns.cornell.edu> to make sure that amd works with more
1141151292Sobrien	secure portmappers that do not allow forwarding of RPC messages to
1141251292Sobrien	other services.
1141351292Sobrien
1141451292Sobrien	* */Makefile.am: all source files should also depend on the new
1141551292Sobrien	include/am_xdr_func.h header.
1141651292Sobrien
1141751292Sobrien	* include/am_xdr_func.h: new file as part of the code cleanup from
1141851292Sobrien	Christos Zoulas <christos@deshaw.com>.
1141951292Sobrien
1142051292Sobrien	* Lots of fixes from Christos Zoulas <christos@deshaw.com> that
1142151292Sobrien	involved missing prototypes, cleaned up ones, and removal of
1142251292Sobrien	unused variables.
1142351292Sobrien
1142451292Sobrien	* libamu/xdr_func.c (xdr_mountres3): some code cleanup.  A switch
1142551292Sobrien	statement with only one case is unclean.
1142651292Sobrien
1142751292SobrienMon Sep 22 17:26:38 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1142851292Sobrien
1142951292Sobrien	* amd/ops_<FOO>fs.c (mount_<FOO>fs): initialize mntent_t fields to
1143051292Sobrien	0 so that all fields are initialized to zero at first.  This way
1143151292Sobrien	SunOS 4.x and other systems don't get /etc/mtab entries with
1143251292Sobrien	random integers for the fsck/freq fields. Patch from Andreas
1143351292Sobrien	Stolcke <stolcke@speech.sri.com>.
1143451292Sobrien
1143551292SobrienMon Sep 22 00:34:19 1997  Erez Zadok  <ezk@americas.psl.cs.columbia.edu>
1143651292Sobrien
1143751292Sobrien	* conf/nfs_prot/nfs_prot_sunos4.h: include <nfs/nfs_clnt.h> so
1143851292Sobrien	that the important definition for HOSTNAMESZ will be found.
1143951292Sobrien
1144051292Sobrien	* amd/ops_afs.c (mount_toplvl): limit hostname size to HOSTNAMESZ
1144151292Sobrien	(inside the nfs_args structure) if the system uses that macro.
1144251292Sobrien	Otherwise systems like SunOS refuse to NFS mount long pathnames
1144351292Sobrien	and result in ENAMETOOLONG errno's.
1144451292Sobrien
1144551292SobrienWed Sep 17 04:56:11 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1144651292Sobrien
1144751292Sobrien	* doc/am-utils.texi (Supported Platforms): specify new support for
1144851292Sobrien	solaris 2.6, and hlfsd running on 2.5.1 too.
1144951292Sobrien
1145051292SobrienWed Sep 17 03:55:02 1997  Erez Zadok  <ezk@amsterdam.psl.cs.columbia.edu>
1145151292Sobrien
1145251292Sobrien	* conf/mount/mount_svr4.c (mount_svr4): don't attemt an autofs
1145351292Sobrien	mount if it is not supported or was turned off.
1145451292Sobrien
1145551292SobrienWed Sep 17 03:19:36 1997  Erez Zadok  <ezk@americas.psl.cs.columbia.edu>
1145651292Sobrien
1145751292Sobrien	* conf/nfs_prot/nfs_prot_sunos4.h: fixed so that it will nfs mount
1145851292Sobrien	again.  Apparently at some previous release SunOS 4 supported was
1145951292Sobrien	broken and all nfs mounts resulted in ESTALE.
1146051292Sobrien
1146151292SobrienWed Sep 17 00:26:25 1997  Erez Zadok  <ezk@amsterdam.psl.cs.columbia.edu>
1146251292Sobrien
1146351292Sobrien	* conf/nfs_prot/nfs_prot_sunos5_6.h: nfs protocol headers for
1146451292Sobrien	solaris 2.6.
1146551292Sobrien
1146651292Sobrien	* aux/macros/check_nfs_prot_headers.m4: added solaris 2.6 nfs
1146751292Sobrien	protocol header selection.
1146851292Sobrien
1146951292SobrienSat Sep 13 14:31:51 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1147051292Sobrien
1147151292Sobrien	* conf/transp/transp_tli.c (amu_clnt_create_best_vers): avoid
1147251292Sobrien	infinite loop.
1147351292Sobrien
1147451292SobrienSun Sep  7 18:23:23 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1147551292Sobrien
1147651292Sobrien	*******************************************************************
1147751292Sobrien	*** Released am-utils-6.0a11					***
1147851292Sobrien	*******************************************************************
1147951292Sobrien
1148051292SobrienFri Sep  5 11:55:10 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1148151292Sobrien
1148251292Sobrien	* amd/amd.c (main): if plock() succeeded, don't try to display
1148351292Sobrien	errno message.   Patch from Chris Metcalf
1148451292Sobrien	<metcalf@catfish.lcs.mit.edu.
1148551292Sobrien
1148651292SobrienThu Sep  4 19:17:58 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1148751292Sobrien
1148851292Sobrien	* hlfsd/homedir.c (table_add): make sure duplicate passwd entries
1148951292Sobrien	are ignored.   Only the first entry should ever be used, because
1149051292Sobrien	that's how lookup in passwd database works.
1149151292Sobrien
1149251292Sobrien	* conf/transp/transp_sockets.c (get_nfs_version): when determining
1149351292Sobrien	if a remote host is up or down, use NFS v.2.  Fix suggested by
1149451292Sobrien	Enami Tsugutomo <enami@cv.sony.co.jp>.
1149551292Sobrien
1149651292Sobrien	* conf/transp/transp_tli.c (amu_clnt_create_best_vers): new
1149751292Sobrien	function to get the best possible NFS version, but also timeout
1149851292Sobrien	faster than normal defaults, so remote hosts which are down can be
1149951292Sobrien	detected in a reasonable time.
1150051292Sobrien	(get_nfs_version): use the new "best" function.
1150151292Sobrien
1150251292SobrienTue Sep  2 00:41:00 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1150351292Sobrien
1150451292Sobrien	*******************************************************************
1150551292Sobrien	*** Released am-utils-6.0a10					***
1150651292Sobrien	*******************************************************************
1150751292Sobrien
1150851292SobrienMon Sep  1 15:39:51 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1150951292Sobrien
1151051292Sobrien	* conf/transp/transp_tli.c (get_nfs_version): don't use
1151151292Sobrien	clnt_tp_create_timed() on systems that don'e have it (Solaris 2.4
1151251292Sobrien	and earlier).
1151351292Sobrien
1151451292Sobrien	* aux/configure.in: test for existence of clnt_tp_create_timed(),
1151551292Sobrien	since Solaris 2.4 (and possibly earlier) do not have it.
1151651292Sobrien
1151751292SobrienMon Sep  1 15:23:18 1997  Erez Zadok  <ezk@felix.psl.cs.columbia.edu>
1151851292Sobrien
1151951292Sobrien	* amd/ops_autofs.c (autofs_unmount_1_svc): only display rdevid
1152051292Sobrien	field if it exists (solaris 2.4's autofs does not have it).
1152151292Sobrien
1152251292SobrienMon Sep  1 14:45:09 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1152351292Sobrien
1152451292Sobrien	* aux/macros/type_auth_create_gidlist.m4: a new test to determine
1152551292Sobrien	the correct type to the 5th argument of authunix_create().
1152651292Sobrien
1152751292SobrienMon Sep  1 03:44:32 1997  Erez Zadok  <ezk@felix.psl.cs.columbia.edu>
1152851292Sobrien
1152951292Sobrien	* libamu/xdr_func.c (xdr_umntrequest): add test for autofs
1153051292Sobrien	structure umntrequest, if it has the field rdevid.  Seems Solaris
1153151292Sobrien	2.4 and earlier didn't have it.
1153251292Sobrien
1153351292SobrienMon Sep  1 01:10:53 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1153451292Sobrien
1153551292Sobrien	* hlfsd/hlfsd.c (hlfsd_init): moved initialization upwards, so it
1153651292Sobrien	can be done before primary process forks.
1153751292Sobrien	(main): bug fix: wait a bit to give child a chance to initialize.
1153851292Sobrien	Without this, hlfsd got into a busy infinite loop while, never
1153951292Sobrien	completing the mount.
1154051292Sobrien
1154151292Sobrien	* amd/info_nis.c: patch from Jason Thorpe <thorpej@nas.nasa.gov>
1154251292Sobrien	to make amd works when talking to NIS+ servers in NIS
1154351292Sobrien	compatibility mode.
1154451292Sobrien
1154551292SobrienMon Sep  1 00:46:56 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1154651292Sobrien
1154751292Sobrien	* amd/mapc.c (MAX_CHAIN): increased maximum chain size to 1024.
1154851292Sobrien
1154951292SobrienSun Aug 31 20:20:40 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1155051292Sobrien
1155151292Sobrien	* amd/conf.c (gopt_fully_qualified_hosts): a new function to
1155251292Sobrien	process another new global variable.
1155351292Sobrien
1155451292Sobrien	* amd/ops_nfs.c (make_nfs_auth): if a new global variable
1155551292Sobrien	fully_qualified_hosts is on, use FQHN in RPC/NFS authentications.
1155651292Sobrien	Patch from Chris Metcalf <metcalf@catfish.lcs.mit.edu>.
1155751292Sobrien
1155851292Sobrien	* amd/conf.c (process_last_regular_map): If the amd.conf file only
1155951292Sobrien	has a [global] section (pretty useless IMHO), do not try to
1156051292Sobrien	process a map that does not exist.
1156151292Sobrien
1156251292Sobrien	* scripts/amd.conf.5: fixed typos (repeated 'as' word).
1156351292Sobrien
1156451292Sobrien	* doc/am-utils.texi: MAJOR DOCUMENTATION REVISION COMPLETED!!!
1156551292Sobrien
1156651292Sobrien	* amd/conf.c (reset_cf_map): Bug fix.  Reset 'tag' field of cfm
1156751292Sobrien	structure, so it does not carry over from map entry to another.
1156851292Sobrien
1156951292SobrienSat Aug 30 18:39:21 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1157051292Sobrien
1157151292Sobrien	* amd/amd.c (main): fixed the meaning of the plock option.  A bug
1157251292Sobrien	caused it to be reversed.
1157351292Sobrien
1157451292SobrienSat Aug 30 15:13:18 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1157551292Sobrien
1157651292Sobrien	* hlfsd/stubs.c: don't initialize some statics here.  They are
1157751292Sobrien	better initialized in hlfsd_init_filehandles().
1157851292Sobrien
1157951292SobrienFri Aug 22 14:47:16 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1158051292Sobrien
1158151292Sobrien	* amd/conf.c (gopt_show_statfs_entries): new function and a global
1158251292Sobrien	amd.conf key show_statfs_entries.  Defaults to 'no'.  If 'yes',
1158351292Sobrien	then all maps flagged as browsable will also show a count of the
1158451292Sobrien	number of entries (keys) in that map.
1158551292Sobrien
1158651292Sobrien	* amd/nfs_subr.c (count_map_entries): new function to count number
1158751292Sobrien	of entries in a map.  Now used if browsable is turned on in a map,
1158851292Sobrien	to return a count of available keys in a given map.
1158951292Sobrien
1159051292Sobrien	* hlfsd/stubs.c (eq_fh): use correct memcmp().  BUG fixed! hlfsd
1159151292Sobrien	confused the file handles for ".", "..", and the symlink, causing
1159251292Sobrien	mess.
1159351292Sobrien
1159451292Sobrien	* aux/macros/func_bad_memcmp.m4: new test, based on autoconf 2.12,
1159551292Sobrien	but also defines HAVE_BAD_MEMCMP, so I avoid linkage conflicts
1159651292Sobrien	with bad memcmp() in libc's (nextstep3).
1159751292Sobrien
1159851292SobrienThu Aug 21 17:38:41 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1159951292Sobrien
1160051292Sobrien	* aux/configure.in: check if autofs_args_t has a field named
1160151292Sobrien	addr.  Solaris has it for specifying the address of the daemon,
1160251292Sobrien	but Irix does not.  So how does irix tell the kernel the daemon's
1160351292Sobrien	address?  I suspect that it is hardcoded to "localhost" using a
1160451292Sobrien	"private well-known port" (#define AUTOFS_PORT 2048).
1160551292Sobrien
1160651292Sobrien	* conf/nfs_prot/nfs_prot_linux.h: added missing autofs
1160751292Sobrien	definitions.
1160851292Sobrien
1160951292Sobrien	* README.autofs: new file listing autofs support notes
1161051292Sobrien
1161151292Sobrien	* very preliminary autofs code working.  Call it pre-alpha
1161251292Sobrien	quality.
1161351292Sobrien
1161451292SobrienSun Aug 17 02:25:09 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1161551292Sobrien
1161651292Sobrien	* amd/conf.c (ropt_mount_type, gopt_mount_type): don't accept
1161751292Sobrien	"autofs" if system does not support it.
1161851292Sobrien
1161951292Sobrien	* amd/amd.c (main): log am-utils version string (same as amd -v)
1162051292Sobrien	at start of run.
1162151292Sobrien
1162251292Sobrien	* conf/transp/transp_sockets.c (get_nfs_version): in order to tell
1162351292Sobrien	if a remote host is available, try to contact its portmapper and
1162451292Sobrien	timeout if no answer is received in 3 seconds.
1162551292Sobrien
1162651292SobrienThu Aug 14 16:12:04 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1162751292Sobrien
1162851292Sobrien	* aux/macros/check_extern.m4 (pattern): use a simpler pattern for
1162951292Sobrien	match for external function definitions.  The function could span
1163051292Sobrien	multiple lines, so only match the opening parenthesis, not the
1163151292Sobrien	closing one too.
1163251292Sobrien
1163351292Sobrien	* aux/macros/os_cpp-flags.m4 (ac_cv_os_cppflags,): do NOT turn on
1163451292Sobrien	posix mode for nextstep3.  It is broken.
1163551292Sobrien
1163651292Sobrien	* amd/amd.c (init_global_options): run uname() only if
1163751292Sobrien	<sys/utsname.h> and uname(2) exist.
1163851292Sobrien
1163951292Sobrien	* amd/rpc_fwd.c (fwd_packet): if remote host is down, the
1164051292Sobrien	forwarding socket is null, so declare this an error.
1164151292Sobrien
1164251292Sobrien	* include/am_utils.h (AM_ERRNO_HOST_DOWN): find best errno to set
1164351292Sobrien	for when a remote host is down.  Try, in order, "host down", "host
1164451292Sobrien	unreachable", "invalid argument".
1164551292Sobrien
1164651292Sobrien	* amd/ops_nfs.c (discard_fh): don't dereference a null pointer
1164751292Sobrien	(happens when remote host is down, and fp->fh_fs is NULL).
1164851292Sobrien	(prime_nfs_fhandle_cache): ditto, and set fs flags to !FSF_VALID
1164951292Sobrien	and FSF_DOWN.
1165051292Sobrien
1165151292Sobrien	* amd/sched.c: nobody uses "union wait" any more, or so it
1165251292Sobrien	appears, so clean up that code.
1165351292Sobrien
1165451292Sobrien	* conf/transp/transp_tli.c (get_nfs_version): if remote host is
1165551292Sobrien	down, time it out faster than default (3 seconds).
1165651292Sobrien	(get_mount_client): free netconfig entry when done with it.
1165751292Sobrien
1165851292Sobrien	* conf/nfs_prot/nfs_prot_nextstep.h: initial (and somewhat ugly)
1165951292Sobrien	port to nextstep3 (m68k-next-nextstep3).
1166051292Sobrien
1166151292Sobrien	* fsinfo/Makefile.am (LDADD): needs to link with libamu in case
1166251292Sobrien	system does not have strdup().
1166351292Sobrien
1166451292Sobrien	* include/am_defs.h: complete external definition for getlogin()
1166551292Sobrien	if needed.
1166651292Sobrien
1166751292Sobrien	* conf/transp/transp_tli.c (get_nfs_version): no need to keep
1166851292Sobrien	static versout variable.
1166951292Sobrien
1167051292Sobrien	* amd/rpc_fwd.c (fwd_packet): if fwdto packet is null, remote
1167151292Sobrien	server is probably down.  Don't use sendto() in that case.
1167251292Sobrien
1167351292Sobrien	* buildall (default): run gmake if found, before trying plain
1167451292Sobrien	make.  GNU make is always preferable.
1167551292Sobrien
1167651292SobrienTue Aug 12 21:23:58 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1167751292Sobrien
1167851292Sobrien	* aux/macros/host_macros.m4: cleanup of os_version and os
1167951292Sobrien	overrides.  Solaris 2.5.1 for example will come up as solaris2 and
1168051292Sobrien	2.5.1, rather than sunos5 and 5.5.1.  Both can be overridden in
1168151292Sobrien	the amd.conf file.
1168251292Sobrien
1168351292SobrienFri Aug  8 14:37:30 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1168451292Sobrien
1168551292Sobrien	*******************************************************************
1168651292Sobrien	*** Released am-utils-6.0a9					***
1168751292Sobrien	*******************************************************************
1168851292Sobrien
1168951292SobrienThu Aug  7 00:52:14 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1169051292Sobrien
1169151292Sobrien	* conf/nfs_prot/nfs_prot_ncr2.h: new file, for NCR2
1169251292Sobrien	(i486-ncr-sysv4.3.03) headers.  Needed to complete missing stuff
1169351292Sobrien	from <ndbm.h> and <sys/resource.h>.
1169451292Sobrien
1169551292Sobrien	* scripts/amd.conf.5: new map page.
1169651292Sobrien
1169751292Sobrien	* amd/info_hesiod.c: define extern for hesiod_resolve, since bsdi3
1169851292Sobrien	does not.
1169951292Sobrien
1170051292Sobrien	* amd/amd.8: updated man page.
1170151292Sobrien
1170251292Sobrien	* amd/get_args.c (get_args): removed defunct -h option to amd.
1170351292Sobrien
1170451292Sobrien	* amq/amq.8: updated man page.
1170551292Sobrien
1170651292Sobrien	* amd/info_nisplus.c (nisplus_search): prototype fixes so Sun
1170751292Sobrien	SparcCompiler CC won't complain.
1170851292Sobrien
1170951292Sobrien	* amd/info_hesiod.c (hesiod_search): small fixes to compile with
1171051292Sobrien	hesiod-1.3, as per Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
1171151292Sobrien
1171251292Sobrien	* aux/macros/opt_ldflags.m4: new option added to configure
1171351292Sobrien	--enable-ldflags, to specify -L option for configuring/compiling.
1171451292Sobrien	The older one --enable-libs is now to be used only for -l options.
1171551292Sobrien
1171651292Sobrien	* amd/ops_nfs.c (mount_nfs_fh): bug fixed.  Should initialize
1171751292Sobrien	nc_protoname from nfs_proto if available for all TLI systems, not
1171851292Sobrien	just those that have NFS V3.
1171951292Sobrien
1172051292Sobrien	* amd/info_ldap.c: ldap patches from Leif Johansson
1172151292Sobrien	<leifj@matematik.su.se>, adding two new amd.conf ldap variables:
1172251292Sobrien	ldap_cache_seconds and ldap_cache_maxmem.
1172351292Sobrien
1172451292Sobrien	* hlfsd/hlfsd.c (main): bug fixed. port number must be wrapped in
1172551292Sobrien	htons().
1172651292Sobrien
1172751292SobrienSun Aug  3 17:20:05 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1172851292Sobrien
1172951292Sobrien	* amd/nfs_start.c (mount_automounter): register amd with the rpc
1173051292Sobrien	program number that may have been overridden by amd.conf.
1173151292Sobrien
1173251292Sobrien	* libamu/xutil.c (set_amd_program_number, get_amd_program_number):
1173351292Sobrien	allow storing and retrieving alternate amd program numbers.
1173451292Sobrien
1173551292Sobrien	* amd/conf.c (gopt_portmap_program): new function to parse
1173651292Sobrien	amd.conf entry portmap_program=1234.
1173751292Sobrien
1173851292Sobrien	* amq/amq.c (main): allow specifying an alternate rpc program
1173951292Sobrien	number for amd via -P prognum.
1174051292Sobrien
1174151292Sobrien	* new amq RPC to get the process id of the running amd.  This is
1174251292Sobrien	used in ctl-amd to quickly find the pid of the amd that is to be
1174351292Sobrien	killed.
1174451292Sobrien
1174551292Sobrien	* expanded shared libraries support.  Using GNU libtool-1.0,
1174651292Sobrien	am-utils now builds shared libraries on many platforms that have
1174751292Sobrien	support for it and proper compilers/linkers.  See "INSTALL" file
1174851292Sobrien	for compatibility chart.
1174951292Sobrien
1175051292SobrienThu Jul 31 13:07:23 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1175151292Sobrien
1175251292Sobrien	* fsinfo/fsi_lex.l: removed code that was in support of very old
1175351292Sobrien	versions of flex.  No longer needed.
1175451292Sobrien
1175551292SobrienTue Jul 29 12:00:13 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1175651292Sobrien
1175751292Sobrien	* amd/amd.c (init_global_options): find the kernel architecture
1175851292Sobrien	from uname() if possible.
1175951292Sobrien
1176051292SobrienMon Jul 28 03:53:59 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1176151292Sobrien
1176251292Sobrien	* new working port: i386-unknown-openbsd2.1
1176351292Sobrien
1176451292SobrienFri Jul 25 03:16:31 1997  Erez Zadok  <ezk@felix.psl.cs.columbia.edu>
1176551292Sobrien
1176651292Sobrien	* working port: sparc-sun-solaris2.4.  Had to fix fhandle_t from
1176751292Sobrien	structure to actual char[], because the structure was passed to
1176851292Sobrien	xdr_fhandle as data and not a pointer.  Surprisingly, gcc
1176951292Sobrien	-fpcc-struct-return did not help.
11770174294Sobrien
1177151292Sobrien	* conf/nfs_prot/nfs_prot_sunos5_4.h: special nfs protocol
1177251292Sobrien	definitions for solaris 2.4 have to be different from 2.3, and
1177351292Sobrien	different from 2.5.
1177451292Sobrien
1177551292Sobrien	* libamu/xdr_fhstatus.c (xdr_fhstatus): minor code cleanup.
1177651292Sobrien
1177751292SobrienThu Jul 24 16:22:39 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1177851292Sobrien
1177951292Sobrien	* conf/mount/mount_svr4.c (mount_svr4): use STREQ to compare mount
1178051292Sobrien	types, not ==.  Fix from Christos Zoulas <christos@deshaw.com>.
1178151292Sobrien
1178251292Sobrien	* mk-amd-map/mk-amd-map.8: man page taken from bsd44.
1178351292Sobrien
1178451292SobrienThu Jul 24 00:01:55 1997  Erez Zadok  <ezk@moisil.cs.columbia.edu>
1178551292Sobrien
1178651292Sobrien	* conf/mount/mount_linux.c: made the nfs error mapping code into a
1178751292Sobrien	small function.
1178851292Sobrien
1178951292SobrienWed Jul 23 16:11:49 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1179051292Sobrien
1179151292Sobrien	* conf/nfs_prot/nfs_prot_linux.h (NFS_ERROR_MAPPING): special
1179251292Sobrien	error mappings from errno numbers to NFS errors.  From Debian
1179351292Sobrien	Linux.
1179451292Sobrien
1179551292Sobrien	* scripts/am-eject.in (fs): new script (taken from Debian Linux
1179651292Sobrien	folks) to auto-unmount floppy/cd devices before ejecting them.
1179751292Sobrien
1179851292Sobrien	* fsinfo/wr_exportfs.c (write_exportfs): from Debian folks, pass
1179951292Sobrien	'5' as second arg to show_area_being_processed.  I'm not sure why.
1180051292Sobrien
1180151292Sobrien	* fsinfo/wr_atab.c (write_atab): from Debian folks, pass '5' as
1180251292Sobrien	second arg to show_area_being_processed.  I'm not sure why.
1180351292Sobrien
1180451292Sobrien	* conf/mount/mount_linux.c (parse_opts): as per Debian Linux,
1180551292Sobrien	ensure that you have a buffer in *xopts to strcat onto.
1180651292Sobrien	(mount_linux): fixed from Debian folks to ensure that NFS mount
1180751292Sobrien	sockets are connected only for kernels prior to 1.3.10 (avoids
1180851292Sobrien	hangs for multi-homed hosts).
1180951292Sobrien
1181051292Sobrien	* amd/mapc.c (make_entry_chain): from Debian folks: don't skip
1181151292Sobrien	over amd map keys that have a prefix, and include the prefix in
1181251292Sobrien	the returned readdir().
1181351292Sobrien
1181451292Sobrien	* amd/info_passwd.c (passwd_init, passwd_search): format
1181551292Sobrien	enhancements from the Debian Linux folks.  They added
1181651292Sobrien	- var0:=pw-prefix:=anydir
1181751292Sobrien	- var1:=pw-rhost:=dom3.dom2.dom1
1181851292Sobrien	- var2:=pw-user:=user
1181951292Sobrien	- var3:=pw-home:=/anydir/dom1/dom2/dom3/user
1182051292Sobrien
1182151292Sobrien	* new ports: sparc-sun-solaris2.4 and sparc-sun-sunos4.1.1.
1182251292Sobrien
1182351292Sobrien	* amd/ops_afs.c (afs_retry): patches from Debian Linux.  If
1182451292Sobrien	afs_mount timed out, then explicitly forbid further retries after
11825174294Sobrien	the timeout.  (afs_bgmount): bug fix from Debian Linux.  Timeout
1182651292Sobrien	values (17 and 5) were mistakenly swapped.
1182751292Sobrien
1182851292SobrienWed Jul 23 15:53:25 1997  Erez Zadok  <ezk@felix.psl.cs.columbia.edu>
1182951292Sobrien
1183051292Sobrien	* conf/nfs_prot/nfs_prot_sunos5_3.h: turn off non-existent NFS V.3
1183151292Sobrien	support for Solaris 2.4 (the header files incorrectly define parts
1183251292Sobrien	of the NFS V.3 protocol, but the kernel does not support it).
1183351292Sobrien
1183451292SobrienWed Jul 23 00:07:12 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1183551292Sobrien
1183651292Sobrien	* amd/info_hesiod.c: minor cleanup to use hes_init and hesiod_init
1183751292Sobrien	for determining if using old or new hesiod libraries,
1183851292Sobrien	respectively.
1183951292Sobrien
1184051292Sobrien	* amd/ops_nfs.c (mount_nfs_fh): If "noconn" option exists in NFS
1184151292Sobrien	V.3 then use non-connected sockets (both TCP and UDP).  Otherwise
1184251292Sobrien	they cause hangs of mounts from multi-homed hosts when the return
1184351292Sobrien	route is not the same as the outgoing route (esp. on NetBSD
1184451292Sobrien	1.2.1).  If "conn" option was supplied, then don't turn on the
1184551292Sobrien	"noconn" mount option.  Otherwise default to "noconn" mount
1184651292Sobrien	option.
1184751292Sobrien
1184851292Sobrien	* aux/configure.in: better check for systems that need libgdbm and
1184951292Sobrien	<ndbm.h>
1185051292Sobrien
1185151292SobrienTue Jul 22 04:02:05 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1185251292Sobrien
1185351292Sobrien	* hlfsd/hlfsd.c (main), amd/ops_afs.c (mount_toplvl): ensure that
1185451292Sobrien	mounts are hidden from df(1) on systems that keep mount tables in
1185551292Sobrien	kernel, such as osf1.
1185651292Sobrien
1185751292SobrienTue Jul 22 02:26:55 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1185851292Sobrien
1185951292Sobrien	*******************************************************************
1186051292Sobrien	*** Released am-utils-6.0a8					***
1186151292Sobrien	*******************************************************************
1186251292Sobrien
1186351292SobrienMon Jul 21 21:33:19 1997  Erez Zadok  <ezk@stone.mcl.cs.columbia.edu>
1186451292Sobrien
1186551292Sobrien	* hlfsd/hlfsd.c (main): bug fixed: forgot to set sin_family to
1186651292Sobrien	AF_INET when hlfsd mounts itself, thus getting an errno "protocol
1186751292Sobrien	family not supported".
1186851292Sobrien
1186951292SobrienMon Jul 21 20:46:59 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1187051292Sobrien
1187151292Sobrien	* verified that amd on NetBSD 1.2.1 (i386) works, but the OS
1187251292Sobrien	itself is flaky.
1187351292Sobrien
1187451292Sobrien	* verified that amd AIX 3 works w/ the new readdir() code.
1187551292Sobrien
1187651292SobrienMon Jul 21 18:59:30 1997  Erez Zadok  <ezk@chestnut.mcl.cs.columbia.edu>
1187751292Sobrien
1187851292Sobrien	* amd/mapc.c (maptypes): changed the default map caching type for
1187951292Sobrien	nis and ndbm maps to "MAPC_ALL", so that all possible entries will
1188051292Sobrien	be available to amd for browsable_dirs=yes.
1188151292Sobrien
1188251292SobrienMon Jul 21 18:04:16 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1188351292Sobrien
1188451292Sobrien	* amd/ops_afs.c (afs_readdir, afs_readdir_browsable): split
1188551292Sobrien	afs_readdir into a browsable version and a non-browsable one.
1188651292Sobrien	Fixed bugs that resulted in an infinite nfs_readdir loop on the
1188751292Sobrien	localhost for some operating systems.
1188851292Sobrien
1188951292SobrienSat Jul 19 19:38:38 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1189051292Sobrien
1189151292Sobrien	* amd/ops_afs.c (afs_readdir): fixed up the browsable code to
1189251292Sobrien	comply with nfs_readdir specs.  It was returning all entries at
1189351292Sobrien	once, even if there was not enough space in the RPC packet.  Now,
1189451292Sobrien	it sends a reasonably sized chunk, and sets static state to resume
1189551292Sobrien	it for the next continuation RPC of readdir.
1189651292Sobrien
1189751292Sobrien	* amd/conf.c (set_conf_kv): fixed bug that resulted in the first
1189851292Sobrien	regular map not getting all of the [global] options defaulted from.
1189951292Sobrien
1190051292SobrienFri Jul 18 00:45:12 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1190151292Sobrien
1190251292Sobrien	* amq/amq.c (main): fixed so that portmapper "ping" will only fail
1190351292Sobrien	upon an RPC timeout
1190451292Sobrien
1190551292Sobrien	* scripts/ctl-{amd,hlfsd}.in (killproc): better method to find the
1190651292Sobrien	amd/hlfsd process to kill.
1190751292Sobrien
1190851292Sobrien	* amd/ops_afs.c (mount_toplvl), hlfsd/hlfsd.c (main): code to
1190951292Sobrien	determine how to avoid df from seeing amd's toplvl mounts.  Moved
1191051292Sobrien	from libamu/mount_fs.c and include/am_utils.h.  Ensure that hlfsd
1191151292Sobrien	is hidden from df.
1191251292Sobrien	(mount_toplvl): fixed df types for irix.
1191351292Sobrien
1191451292SobrienThu Jul 17 21:59:45 1997  Erez Zadok  <ezk@americas.psl.cs.columbia.edu>
1191551292Sobrien
1191651292Sobrien	* amq/amq.c (main): fixed bug that caused the 5 second timeout for
1191751292Sobrien	TLI amq using udp to be ignored.
1191851292Sobrien	(main): if amq cannot contact remote host's portmapper within 5
1191951292Sobrien	seconds, timeout and fail faster than the default longer timeout
1192051292Sobrien	(this is for non-TLI systems).
1192151292Sobrien
1192251292SobrienThu Jul 17 17:08:13 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1192351292Sobrien
1192451292Sobrien	* amq/amq.c (get_secure_amd_client): if amq cannot contact
1192551292Sobrien	remote host's portmapper within 5 seconds, timeout and fail faster
1192651292Sobrien	than the default TLI timeout of over 4 minutes.
1192751292Sobrien
1192851292Sobrien	* amd/am_ops.c (ops_showfstypes): added styles for new bsd44
1192951292Sobrien	file systems nullfs, unionfs, and umapfs.
1193051292Sobrien	(ops_show1): cleanup code and and reuse this function.
1193151292Sobrien	(vops): empty placeholders for nullfs, unionfs, and umapfs.
1193251292Sobrien
1193351292Sobrien	* amd/ops_{nullfs, unionfs, umapfs}.c: 3 new empty templates for
1193451292Sobrien	bsd44 style file systems.
1193551292Sobrien
1193651292Sobrien	* fsinfo/fsinfo.8: man page for fsinfo rewritten from bsd44
1193751292Sobrien	sources.
1193851292Sobrien
1193951292Sobrien	* amd/conf_tok.l, fsinof/fsi_lex.c: undefine ECHO to avoid
1194051292Sobrien	conflict with systems that define it in <sys/ioctl.h> and also
1194151292Sobrien	define a conflicting one via lex.  Newer versions of f/lex are ok.
1194251292Sobrien
1194351292SobrienWed Jul 16 00:17:45 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1194451292Sobrien
1194551292Sobrien	* amd/ops_nfs.c (mount_nfs_fh): fill in nfs_args' fields
1194651292Sobrien	acdirmin/max and acregmin/max only if they exist.
1194751292Sobrien
1194851292Sobrien	* aux/configure.in: test for nfs_args fields acdirmin and
1194951292Sobrien	acregmin.
1195051292Sobrien
1195151292SobrienTue Jul 15 17:24:09 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1195251292Sobrien
1195351292Sobrien	* aux/configure.in: commented out checking for MNT2_GEN_OPT_* for
1195451292Sobrien	"nondev" and commented back in checking for "nodev".  This was a
1195551292Sobrien	typo.
1195651292Sobrien
1195751292Sobrien	* include/am_compat.h: more compatibility options: define "ro"
1195851292Sobrien	mnttab option all the time.  Define "overlay" as needed.  Added
1195951292Sobrien	more fillers of mnttab options (as per Daniel S. Riley
1196051292Sobrien	<dsr@mail.lns.cornell.edu>), for acdirmax, acdirmin, acregmax,
1196151292Sobrien	acregmin, noac, grpid, nosuid, and actimo.
1196251292Sobrien
1196351292Sobrien	* libamu/mount_fs.c (mnt_flags): fixed a typo in "ro" option as
1196451292Sobrien	per dsr@mail.lns.cornell.edu (Daniel S. Riley).  Then cleaned up
1196551292Sobrien	the same code for other options in struct opt_tab.
1196651292Sobrien
1196751292SobrienMon Jul 14 22:36:37 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1196851292Sobrien
1196951292Sobrien	* amd/get_args.c (get_args): moved amd.conf file parsing to before
1197051292Sobrien	the switching the default log/debug options.  Suggested by
1197151292Sobrien	dsr@mail.lns.cornell.edu (Daniel S. Riley).
1197251292Sobrien
1197351292Sobrien	* aux/update_build_version: new script to record the build version
1197451292Sobrien	of amd, along with the rest of the info thet comes up with amd -v.
1197551292Sobrien
1197651292SobrienSun Jul 13 00:30:24 1997  Erez Zadok  <ezk@decca.damtp.cam.ac.uk>
1197751292Sobrien
1197851292Sobrien	* aux/macros/os_cflags.m4: new macro, to add additional
1197951292Sobrien	compilation options (also used during configuration), based on the
1198051292Sobrien	OS and the compiler.  Used for solaris-2.6, osf, and irix6.
1198151292Sobrien
1198251292SobrienFri Jul 11 10:15:11 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1198351292Sobrien
1198451292Sobrien	* amd/conf_tok.l, conf_parse.y: allow values of keys to include
1198551292Sobrien	white spaces, if they are double-quoted (key="some value")
1198651292Sobrien
1198751292Sobrien	* amd/info_hesiod.c (hesiod_search): cleanup and minor bug fixes
1198851292Sobrien	of hesiod from Danny Braniss <danny@cs.huji.ac.il>.
1198951292Sobrien
1199051292SobrienFri Jul 11 02:16:06 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1199151292Sobrien
1199251292Sobrien	*******************************************************************
1199351292Sobrien	*** Released am-utils-6.0a7					***
1199451292Sobrien	*******************************************************************
1199551292Sobrien
1199651292SobrienThu Jul 10 12:19:25 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1199751292Sobrien
1199851292Sobrien	* include/am_defs.h: fill in extern definition of innetgr() in
1199951292Sobrien	case system headers don't.
1200051292Sobrien
1200151292Sobrien	* aux/macros/path_prog_lex.m4 aux/configure.in: using macros that
1200251292Sobrien	will show the full pathname to yacc/bison and f/lex.  Some systems
1200351292Sobrien	have older or bad versions of those and this way the user will
1200451292Sobrien	know for sure what is being invoked.
1200551292Sobrien
1200651292Sobrien	* tasks: file populated with todo items.
1200751292Sobrien
1200851292Sobrien	* scripts/amd2ldif.in: Script to convert amd maps to plain text
1200951292Sobrien	LDAP object files.  Contributed by Leif Johansson
1201051292Sobrien	<leifj@matematik.su.se>.
1201151292Sobrien
1201251292Sobrien	* aux/config.guess: added recognition for sun3's running 4.2bsd,
1201351292Sobrien	from Tom Schmidt <tschmidt@micron.com>.  Fixed one small typo.
1201451292Sobrien
1201551292Sobrien	* amd/conf.c: several variables that were local to a map, were
1201651292Sobrien	also added to [global], where they apply to all maps.  Each map
1201751292Sobrien	can then individually override those defaults.  Flags
1201851292Sobrien	affected: browsable_dirs and mount_type.  Options affected:
1201951292Sobrien	map_type, map_options, and search_path.
1202051292Sobrien
1202151292Sobrien	* amd/amd.h: eliminated several global flags each of which took an
1202251292Sobrien	int, in favor of one global flags variable used as a bit field.
1202351292Sobrien
1202451292Sobrien	* amd/amd.c (init_global_options): moved all global variables into
1202551292Sobrien	a single struct amu_global_options, so it is easier to add new
1202651292Sobrien	ones and/or identify existing ones.
1202751292Sobrien
1202851292Sobrien	* amd/get_args.c (get_args): removed unused amd -m option.
1202951292Sobrien
1203051292Sobrien	* amd/conf.c (gopt_cluster): added new amd.conf option for cluster
1203151292Sobrien	name, same as amd -C.
1203251292Sobrien
1203351292Sobrien	* amd/info_ldap.c: LDAP info map functions from Leif Johansson
1203451292Sobrien	<leifj@matematik.su.se>.
1203551292Sobrien
1203651292Sobrien	* amd/conf.c (gopt_ldap_base, gopt_ldap_hostports): put in global
1203751292Sobrien	amd.conf options for ldap_base and ldap_hostports.
1203851292Sobrien
1203951292Sobrien	* amd/opts.c (f_netgrp): new amd map function netgrp(ARG) to test
1204051292Sobrien	if the current host is in the ARG host netgroup.
1204151292Sobrien
1204251292Sobrien	* aux/configure.in: some systems replaced dbm in libc with GNU's
1204351292Sobrien	libgdbm, so check for libgdbm, but only if dbm_open is not in
1204451292Sobrien	libc already.  This was a recommendation from Tom Schmidt
1204551292Sobrien	<tschmidt@micron.com>.
1204651292Sobrien
1204751292Sobrien	* conf/nfs_prot/nfs_prot_sunos5_3.h: port to sparc-sun-solaris2.3
1204851292Sobrien	completed.
1204951292Sobrien
1205051292SobrienWed Jul  9 18:14:59 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1205151292Sobrien
1205251292Sobrien	* port to sparc-unknown-netbsd1.2E done, not tested.  Includes NFS
1205351292Sobrien	V.3.
1205451292Sobrien
1205551292SobrienTue Jul  8 17:35:07 1997  Erez Zadok  <ezk@elk.mcl.cs.columbia.edu>
1205651292Sobrien
1205751292Sobrien	* port to i386-unknown-freebsd3.0 done and working.  Includes NFS
1205851292Sobrien	V.3.
1205951292Sobrien
1206051292Sobrien	* aux/macros/check_nfs_fh_dref.m4: freebsd3 should use
1206151292Sobrien	file handle dereferencing style similar to freebsd22.
1206251292Sobrien
1206351292Sobrien	* include/am_defs.h: need to include <net/if_var.h> before
1206451292Sobrien	<netinet/if_ether.h> on freebsd3.
1206551292Sobrien
1206651292Sobrien	* conf/nfs_prot/nfs_prot_freebsd3.h: new protocol header additions
1206751292Sobrien	for freeBSD 3.0.
1206851292Sobrien
1206951292SobrienTue Jul  8 16:53:41 1997  Erez Zadok  <ezk@moisil.cs.columbia.edu>
1207051292Sobrien
1207151292Sobrien	* amd/info_nis.c (nis_reload): cast nis' callback function so
1207251292Sobrien	picky compilers won't complain.
1207351292Sobrien
1207451292Sobrien	* libamu/xdr_mountres3.c (xdr_mountres3): make sure this function
1207551292Sobrien	gets compiled only if the system has NFS V3 and does not have
1207651292Sobrien	xdr_mountres3.
1207751292Sobrien
1207851292SobrienTue Jul  8 12:42:03 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1207951292Sobrien
1208051292Sobrien	* COPYING: put in some legal stuff in this file.
1208151292Sobrien
1208251292SobrienMon Jul  7 19:10:44 1997  Erez Zadok  <ezk@prometheus.soscorp.com>
1208351292Sobrien
12084174294Sobrien	* NFS V3 now works under Irix5, thanks to patches from
1208551292Sobrien	Andreas Stolcke <stolcke@speech.sri.com>.
1208651292Sobrien
1208751292Sobrien	* conf/mount/mount_irix5.c: sparate mount_irix.c into an irix5
1208851292Sobrien	version and an irix6 version, since irix5's NFS V3 code is broken
1208951292Sobrien	and hacky.
1209051292Sobrien
1209151292Sobrien	* amd/info_hesiod.c (hs_zone_transfer): minor fixes to buffer
1209251292Sobrien	sizes for some hesiod queries.  Patch from Danny Braniss
1209351292Sobrien	<danny@cs.huji.ac.il>.
1209451292Sobrien
1209551292SobrienMon Jul  7 19:04:14 1997  Erez Zadok  <ezk@glory.soscorp.com>
1209651292Sobrien
1209751292Sobrien	* amd/ops_nfs.c (mount_nfs_fh): fixed NFS V.3 support for bsdi3.
1209851292Sobrien
1209951292SobrienSun Jul  6 14:22:24 1997  Erez Zadok  <ezk@glory.soscorp.com>
1210051292Sobrien
1210151292Sobrien	* aux/{configure.in,acconfig.h}: added checks for struct
1210251292Sobrien	nfs_args's fields proto and sotype (bsdi3).
12103174294Sobrien
1210451292Sobrien	* amd/ops_nfs.c (mount_nfs_fh): added nfsv3 option to
1210551292Sobrien	nfs_args.flags for bsdi3.  Set field proto to 0.  Set sotype field
1210651292Sobrien	to SOCK_STREAM or SOCK_DGRAM.
1210751292Sobrien
1210851292Sobrien	* aux/macros/check_mount_style.m4: add case for bsdi3.
1210951292Sobrien
1211051292Sobrien	* amd/info_hesiod.c: got hesiod support for bsdi3.
1211151292Sobrien
1211251292SobrienSun Jul  6 11:14:47 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1211351292Sobrien
1211451292Sobrien	* aux/configure.in: look for hesiod on libc (bsdi3)
1211551292Sobrien
1211651292Sobrien	* amd/get_args.c (get_args): reformat usage so it fits in 80
1211751292Sobrien	columns.
1211851292Sobrien
1211951292Sobrien	* scripts/ctl-amd.in: changed directory name for optional tftpboot
1212051292Sobrien	map to /tftpboot/.amd.
1212151292Sobrien
1212251292SobrienSat Jul  5 17:46:45 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1212351292Sobrien
1212451292Sobrien	*******************************************************************
1212551292Sobrien	*** Released am-utils-6.0a6					***
1212651292Sobrien	*******************************************************************
1212751292Sobrien
1212851292SobrienSat Jul  5 03:17:09 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1212951292Sobrien
1213051292Sobrien	* scripts/ctl-amd.in: include -T tag for tftpboot.
1213151292Sobrien
1213251292Sobrien	* new port: mips-sgi-irix5.3.  Compiled with gcc, but NFS V3 code
1213351292Sobrien	is broken and needs work on the specific nfs_args that irix5 uses
1213451292Sobrien	for V3 mounts.
1213551292Sobrien
1213651292SobrienSat Jul  5 01:44:25 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1213751292Sobrien
1213851292Sobrien	* amd/get_args.c (get_args): new options amd -T tag.  A map with
1213951292Sobrien	tag=foo matching the -T tag will be processed.  All untagged maps
1214051292Sobrien	get processed all the time.
1214151292Sobrien
1214251292SobrienFri Jul  4 16:19:26 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1214351292Sobrien
1214451292Sobrien	* aux/configure.in: need to check for strcasecmp in libucb (ncr2)
1214551292Sobrien
1214651292Sobrien	* aux/macros/check_os_libs.m4: a new macro to set the usage of
1214751292Sobrien	libnsl and libsocket based on the OS.
1214851292Sobrien
1214951292Sobrien	* libamu/mount_fs.c (mnt_flags): used MNTTAB_OPT_GRPID if it is
1215051292Sobrien	defined (problem on osf4).
1215151292Sobrien
1215251292Sobrien	* conf/nfs_prot/nfs_prot_irix5.h: new file for irix5 headers.
1215351292Sobrien
1215451292Sobrien	* include/am_defs.h, aux/macros/try_compile_nfs.m4,
1215551292Sobrien	aux/macros/mount_headers.m4: do include <sys/proc.h> because it
1215651292Sobrien	failes on irix5.  Rather, put in the individual
1215751292Sobrien	conf/nfs_prot/nfs_prot_*.h headers.
1215851292Sobrien
1215951292Sobrien	* amd/conf.c: AIX3 doesn't like strdup() being passed a constant
1216051292Sobrien	char*, so cast all strdup()'s args to a non-const char*.
1216151292Sobrien
1216251292Sobrien	* amd/mapc.c (root_newmap): don't try to strdup only a "const
1216351292Sobrien	char *".
1216451292Sobrien
1216551292SobrienFri Jul  4 15:47:10 1997  Erez Zadok  <ezk@americas.psl.cs.columbia.edu>
1216651292Sobrien
1216751292Sobrien	* conf/nfs_prot/nfs_prot_sunos4.h: added rpc/rpc.h and
1216851292Sobrien	sys/errno.h.
1216951292Sobrien
1217051292SobrienThu Jul  3 17:49:00 1997  Erez Zadok  <ezk@prometheus.soscorp.com>
1217151292Sobrien
1217251292Sobrien	* made sure am-utils compiles, links, and runs properly on Irix
1217351292Sobrien	6.2 using "cc -32 -Wl,-woff,"
1217451292Sobrien
1217551292Sobrien	* aux/macros/check_lib2.m4: a bug fix version to autoconf 2.12
1217651292Sobrien	AC_CHECK_LIB.  If OTHER-LIBRARIES are defined and used, then add
1217751292Sobrien	them to $LIBS.
1217851292Sobrien
1217951292Sobrien	* aux/configure.in: some cleanup of which libraries are needed.
1218051292Sobrien	Espectially ensure that libnsl is included only on Solaris, where
1218151292Sobrien	so far it is the only system on which it is absolutely necessary.
12182174294Sobrien	Also no longer need to include libc explicitly.
1218351292Sobrien
1218451292Sobrien	* amd/amd.c,wire-test/wire-test.c (main): convert IP address to
1218551292Sobrien	network-long order before printing it.
1218651292Sobrien
1218751292Sobrien	* wire-test/wire-test.c (main): also check and report on the IP
1218851292Sobrien	address of the local host, since some systems have bad versions of
1218951292Sobrien	get_myaddress, or ones that conflict with other versions in
1219051292Sobrien	multiple libraries (SunOS 4 and Irix especially).
1219151292Sobrien
1219251292SobrienWed Jul  2 18:19:02 1997  Erez Zadok  <ezk@starblazers.soscorp.com>
1219351292Sobrien
1219451292Sobrien	* scripts/ctl-amd.in: don't use full pathname so killproc() works
12195174294Sobrien	better.  Also run bsd44 and irix style ps programs.
1219651292Sobrien
1219751292Sobrien	* aux/macros/check_lib_funcs.m4: bug fixed: used to define usage
1219851292Sobrien	of library no matter if it was found or not.
1219951292Sobrien
1220051292SobrienWed Jul  2 02:11:48 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1220151292Sobrien
1220251292Sobrien	* aux/macros/check_mnt2_gen_opt.m4: turned back on the checking
1220351292Sobrien	for M_* macros, but ensure that <sys/stream.h> is not included at
1220451292Sobrien	all so it won't conflict with other M_* macros.
1220551292Sobrien
1220651292SobrienTue Jul  1 21:16:51 1997  Erez Zadok  <ezk@mako.cs.columbia.edu>
1220751292Sobrien
1220851292Sobrien	* conf/mount/mount_irix.c (mount_irix): first arg to mount(2) on
1220951292Sobrien	irix should be "spec" (host:/path), not the dir of the mnt point.
1221051292Sobrien
1221151292Sobrien	* amd/ops_afs.c (afs_lookuppn): bug in enable_default_selectors
1221251292Sobrien	fixed.  If on, it essentially ignored the setting in a
1221351292Sobrien	selector-controlled /defaults if there were 2 or more entries in it.
1221451292Sobrien
1221551292SobrienTue Jul  1 12:23:38 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1221651292Sobrien
1221751292Sobrien	* scripts/ctl-{amd,hlfsd}.in (killproc): if failed to find process
1221851292Sobrien	using BSD style ps, then try SVR4 style ps.
1221951292Sobrien
1222051292Sobrien	* include/am_utils.h (amuDebug): renamed Debug macro to amuDebug
1222151292Sobrien	etc., to avoid conflicts with similar named macros in <ldap.h>.
1222251292Sobrien
1222351292Sobrien	* aux/configure.in, amd/info_ldap.c, etc.: put in all the autoconf
1222451292Sobrien	support needed for LDAP.  Now the code has to be written mostly in
1222551292Sobrien	amd/info_ldap.c.
1222651292Sobrien
1222751292Sobrien	* Included additional patches from Andreas Stolcke
1222851292Sobrien	<stolcke@speech.sri.com> to support using the best possible
1222951292Sobrien	combination of NFS version (2,3) and protocol (udp,tcp) for any
1223051292Sobrien	given host, since it appears that some Irix versions have NFS V3,
1223151292Sobrien	but do not support TCP.
1223251292Sobrien
1223351292Sobrien	* scripts/ctl-amd.in: updated amd control script to look for and
1223451292Sobrien	use amd.conf file.
1223551292Sobrien
1223651292SobrienTue Jul  1 00:28:23 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1223751292Sobrien
1223851292Sobrien	* amd/mapc.c (mapc_create): now, each map in the amd.conf can be
1223951292Sobrien	initialized off of a different type, or default to cycling through
1224051292Sobrien	all maps until one of them matches.
1224151292Sobrien
1224251292SobrienMon Jun 30 20:49:13 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1224351292Sobrien
1224451292Sobrien	* amd/ops_afs.c (afs_readdir): per-map browsing (readdir) done.
1224551292Sobrien	if browsable_dirs=yes is set in the map section in amd.conf, that
1224651292Sobrien	map will return all entries back to a readdir(2).
1224751292Sobrien
1224851292SobrienSun Jun 29 16:22:11 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1224951292Sobrien
1225051292Sobrien	* rudimentary amd.conf file support included.  You may even
1225151292Sobrien	override things like os=sos5, to get "backwards" compatibility with
1225251292Sobrien	upl102.
1225351292Sobrien
1225451292SobrienSat Jun 28 13:35:02 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1225551292Sobrien
1225651292Sobrien	* amd/conf.c: new file to process amd.conf file.
1225751292Sobrien
1225851292Sobrien	* amd/get_args.c (get_args): new options -H to print help.
1225951292Sobrien
1226051292Sobrien	* moved enable_default_selectors to be amd.conf controlled, and
1226151292Sobrien	not compiler controlled.
1226251292Sobrien
1226351292Sobrien	* amd/get_args.c (get_args): new options -F <conf-file> to parse an
1226451292Sobrien	amd configuration file.
1226551292Sobrien
1226651292SobrienWed Jun 25 23:15:42 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1226751292Sobrien
1226851292Sobrien	* converted all files that used strcmp() == 0 or != 0  to using
1226951292Sobrien	the STREQ() macro.
1227051292Sobrien
1227151292SobrienMon Jun 23 22:31:14 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1227251292Sobrien
1227351292Sobrien	* aux/macros/check_lib_funcs.m4: new M4 macro that can be used to
1227451292Sobrien	search for any number of functions in any given library.
1227551292Sobrien
1227651292SobrienMon Jun 23 01:04:23 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1227751292Sobrien
1227851292Sobrien	* amd/mapc.c: Included patch from Leif Johansson
1227951292Sobrien	<leifj@matematik.su.se> to ensure that systems without an RE
1228051292Sobrien	library can compile.
1228151292Sobrien
1228251292Sobrien	* libamu/mount_fs.c (mount_fs): Included patch from Andreas
1228351292Sobrien	Stolcke <stolcke@speech.sri.com>, to ensure that mount options on
1228451292Sobrien	table are properly delimited by a comma.
1228551292Sobrien
1228651292Sobrien	* amd/ops_nfs.c (mount_nfs_fh): Included patch from Andreas
1228751292Sobrien	Stolcke <stolcke@speech.sri.com>, to allow users to override the
1228851292Sobrien	proto= and vers= mount options.
1228951292Sobrien
1229051292SobrienSun Jun 22 01:00:11 1997  Eric Dana  (edana@ncr2.bgs.com)
1229151292Sobrien
1229251292Sobrien	* conf/nfs_prot/nfs_prot_svr4.h: port completed to
1229351292Sobrien	i486-ncr-sysv4.3.03.  Assorted source cleanups done.
1229451292Sobrien
1229551292Sobrien	* include/am_defs.h, aux/macros/mount_headers.m4: don't include
1229651292Sobrien	mnttab.h if sys/mnttab.h was already included, because on ncr2,
1229751292Sobrien	they contain conflicting entries for struct mnttab.
1229851292Sobrien
1229951292SobrienSat Jun 21 23:52:15 1997  Eric Dana  (edana@ncr2.bgs.com)
1230051292Sobrien
1230151292Sobrien	* aux/macros/check_nfs_prot_headers.m4: added support for ncr2.
1230251292Sobrien
1230351292SobrienFri Jun 20 06:14:17 1997  Erez Zadok  <ezk>
1230451292Sobrien
1230551292Sobrien	* amd/*.c: lots of 64-bit "ugly" ports like casts to long ints.
1230651292Sobrien
1230751292Sobrien	* aux/macros/struct_nfs_fh.m4: check for "struct nfssvcfh" because
1230851292Sobrien	on DU-4.0 it is better than the next one to be picked (nfsv2fh_t).
1230951292Sobrien
1231051292SobrienWed Jun 18 18:59:49 1997  Erez Zadok  <ezk@defiant.soscorp.com>
1231151292Sobrien
1231251292Sobrien	* aux/macros/struct_nfs_fh.m4 (AC_TRY_COMPILE_NFS): check for
1231351292Sobrien	nfsv2fh_t before fhandle_t becasue on bsdi2.1 the former is
1231451292Sobrien	better.
1231551292Sobrien
1231651292SobrienTue Jun 10 17:06:58 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1231751292Sobrien
1231851292Sobrien	* amd/rpc_fwd.c (fwd_packet): TLI bug fix. if fwdto socket is
1231951292Sobrien	NULL, set the maxlen and len fields in netbuf to zero.
1232051292Sobrien
1232151292SobrienWed May 28 22:52:28 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1232251292Sobrien
1232351292Sobrien	* scripts/fix-amd-map.in (name): replace all matching patterns on
1232451292Sobrien	line.
1232551292Sobrien
1232651292SobrienSun May 25 19:33:41 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1232751292Sobrien
1232851292Sobrien	*******************************************************************
1232951292Sobrien	*** Released am-utils-6.0a5					***
1233051292Sobrien	*******************************************************************
1233151292Sobrien
1233251292SobrienSun May 25 13:37:24 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1233351292Sobrien
1233451292Sobrien	* amd/amq_subr.c (amqproc_getvers_1_svc): amq's RPC service
1233551292Sobrien	procedure now returns the full string that amd -v returns.
1233651292Sobrien
1233751292Sobrien	* amd/get_args.c (get_version_string): new function to return
1233851292Sobrien	complete version/info string so it could be used more flexibly.
1233951292Sobrien
1234051292Sobrien	* amd/am_ops.c (ops_showamfstypes, ops_showfstypes): put the list
1234151292Sobrien	of Fs types into a string buffer, rather than a FILE*.
1234251292Sobrien
1234351292Sobrien	* amd/mapc.c (mapc_showtypes): put the list of map types into a
1234451292Sobrien	string buffer, rather than a FILE*.
1234551292Sobrien
1234651292SobrienSun May 25 01:25:36 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1234751292Sobrien
1234851292Sobrien	* amd/get_args.c (get_args): amd -v also prints user who built
1234951292Sobrien	amd, hostname built on, and date of configuration.
1235051292Sobrien
1235151292SobrienSat May 24 13:40:50 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1235251292Sobrien
1235351292Sobrien	* scripts/lostaltmail.conf-sample: sample lostaltmail
1235451292Sobrien	configuration file.
1235551292Sobrien
1235651292Sobrien	* scripts/lostaltmail.in: new script lostaltmail used to redeliver
1235751292Sobrien	"lost" mail that hlfsd redirected to a temp location because the
1235851292Sobrien	primary home file system of the user was full.
1235951292Sobrien
1236051292Sobrien	* scripts/amd2sun.in: new script amd2sun. Used to convert Sub
1236151292Sobrien	automount maps to amd maps.
1236251292Sobrien
1236351292Sobrien	* scripts/ctl-hlfsd.in: new script ctl-hlfsd.  Used to start,
1236451292Sobrien	stop, or restart hlfsd.
12365174294Sobrien
1236651292Sobrien	* scripts/expn.1: man page for expn command.
1236751292Sobrien
1236851292Sobrien	* scripts/ctl-amd.in: new script ctl-amd.  Used to start, stop, or
1236951292Sobrien	restart amd.
1237051292Sobrien
1237151292Sobrien	* scripts/expn.in: new script expn.  Actually taken from David
1237251292Sobrien	Muir Sharnoff <muir@idiom.com>.  Used by hlfsd's mail re-delivery
1237351292Sobrien	script.
1237451292Sobrien
1237551292Sobrien	* scripts/wait4amd.in: new script wait4amd added.  Waits for amd
1237651292Sobrien	to come up on a host, and then runs a command (rsh $hostname by
1237751292Sobrien	default).
1237851292Sobrien
1237951292Sobrien	* scripts/Makefile.am: new directory now holds all shell/perl
1238051292Sobrien	scripts that belong to am-utils.
1238151292Sobrien
1238251292Sobrien	* conf/mount/mount_linux.c (parse_opts): new parser for
1238351292Sobrien	linux-specific mounts.  Handles fs-type specific mount-options
1238451292Sobrien	correctly.  Currently implemented: msdos, iso9660.
1238551292Sobrien
12386174294Sobrien	* amd/ops_pcfs.c (pcfs_ops): don't timeout pcfs mounts by default
1238751292Sobrien	(fix for linux).
1238851292Sobrien
1238951292Sobrien	* amd/ops_cdfs.c (cdfs_ops): don't timeout cdfs mounts by default
1239051292Sobrien	(fix for linux).
1239151292Sobrien
1239251292Sobrien	* amd/mapc.c (make_entry_chain): fixed bug that resulted in amd
1239351292Sobrien	core dumps upon "ls" of a mount point; an invalid pointer was
1239451292Sobrien	being returned and dereferenced.
1239551292Sobrien
1239651292Sobrien	* port to Linux sparc working!
1239751292Sobrien
1239851292Sobrien	* hlfsd/homedir.c (hlfsd_diskspace): close file descriptor if
1239951292Sobrien	failed to write test file, or else the fd will leak.
1240051292Sobrien
1240151292SobrienSun May 18 00:42:41 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1240251292Sobrien
1240351292Sobrien	* amd/info_hesiod.c (hs_strip_our_domain): use strcasecmp()
1240451292Sobrien	instead of strcmp().
1240551292Sobrien
1240651292Sobrien	* Port to Digital Unix 4.0 (OSF) done.
1240751292Sobrien
1240851292Sobrien	* hlfsd/hlfsd.c: renamed dirname to dir_name to avoid conflicts
1240951292Sobrien	with dirname() function in <string.h> on OSF systems.
1241051292Sobrien
1241151292Sobrien	* fsinfo/fsi_util.c (set_ether_if): take out extern definition of
1241251292Sobrien	inet_addr().  It should come from <arpa/inet.h> instead.
1241351292Sobrien
1241451292Sobrien	* conf/mtab/mtab_osf.c: fixed macros and added NFS V3 specs.
1241551292Sobrien
1241651292Sobrien	* include/am_utils.h: renamed FIRST/LAST to AM_FIRST/AM_LAST to
1241751292Sobrien	avoid conflicts with DU 4.0 system header.
1241851292Sobrien
1241951292SobrienThu May 15 22:49:12 1997  Erez Zadok  <ezk@subzero.cs.columbia.edu>
1242051292Sobrien
1242151292Sobrien	* libamu/mount_fs.c (mount_fs): pass along NFS version so I can
1242251292Sobrien	determine if to include additional options in the mount table file
1242351292Sobrien	entry (such as proto=tcp, and vers=3).
1242451292Sobrien
1242551292SobrienThu May 15 00:42:12 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1242651292Sobrien
1242751292Sobrien	* libamu/mount_fs.c (mount_fs): include NFS version number in the
1242851292Sobrien	mount table options, as well as proto={tcp,udp}.
1242951292Sobrien
1243051292SobrienWed May 14 14:30:19 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1243151292Sobrien
1243251292Sobrien	* NFS V3 code ported to most other systems, so it compiles for V2
1243351292Sobrien	and V3 NFS systems.
1243451292Sobrien
1243551292Sobrien	* NFS VERSION 3 support, first pass.  Working for Solaris and
1243651292Sobrien	using TCP.
1243751292Sobrien
1243851292SobrienSun May 11 01:14:29 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1243951292Sobrien
1244051292Sobrien	* amq/amq.c: many newline characters were missing from various
1244151292Sobrien	stderr printfs.
1244251292Sobrien
1244351292SobrienSat May 10 13:09:06 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1244451292Sobrien
1244551292Sobrien	* conf/nfs_prot/nfs_prot_sunos5.h: protocol defintions for
1244651292Sobrien	Solaris, which include NFS V3 support.
1244751292Sobrien
1244851292Sobrien	* conf/nfs_prot/nfs_prot_default.h: default NFS protocol headers.
1244951292Sobrien
1245038494Sobrien	* conf/transp/transp_{tli,sockets}.c (get_mount_client): use NFS
1245138494Sobrien	protocol version while getting a mount client.
1245238494Sobrien
1245338494Sobrien	* amd/ops_nfs.c (mount_nfs_fh): set the mount types, mnttab types,
1245438494Sobrien	file handle size, and proper file handle based on the correct NFS
1245538494Sobrien	version number.
1245638494Sobrien
1245738494Sobrien	* conf/mount/mount_svr4.c (mount_svr4): support NFS3 mounts under
1245838494Sobrien	Solaris and other SVR4 systems.
1245938494Sobrien
1246038494Sobrien	* amd/ops_nfs.c: store NFS file handle version and version
1246138494Sobrien	specific handle in struct fh_cache.
1246238494Sobrien	(got_nfs_fh): pick the correct RPC reply based on the NFS version
1246338494Sobrien	of the server.
1246438494Sobrien	(prime_nfs_fhandle_cache): figure out the right NFS file handle
1246538494Sobrien	for a node, but now include NFS protocol version information.
1246638494Sobrien	(call_mountd): set the correct version for the mount protocol,
1246738494Sobrien	based on the NFS protocol version.
1246838494Sobrien	(nfs_init): use the NFS protocol generic structure
1246938494Sobrien	am_nfs_handle_t.
1247038494Sobrien
1247138494Sobrien	* include/am_utils.h: new structure am_nfs_handle_t to contain all
1247238494Sobrien	possible versions of NFS file handles.
1247338494Sobrien
1247438494Sobrien	* amd/srvr_nfs.c (start_ping): ping program performs NFS version
1247538494Sobrien	specific pings.
1247638494Sobrien	(recompute_portmap): figure out the correct portmap version mount.
1247738494Sobrien	(nfs_keepalive): call start_ping() with the correct NFS version.
1247838494Sobrien	(find_nfs_srvr): if mount option "vers=" is given, use it.  Get
1247938494Sobrien	the NFS server version and verify that it is up.
1248038494Sobrien
1248138494Sobrien	* conf/transp/transp_{tli,sockets}.c (get_nfs_version): a new
1248238494Sobrien	function to find the best NFS version for a particular host.
1248338494Sobrien
1248438494Sobrien	* libamu/amu.h: determine what is the highest version of NFS we
1248538494Sobrien	should try.
1248638494Sobrien
1248738494Sobrien	* include/am_utils.h (NFS_VERSION3): added definition for NFS V3
1248838494Sobrien	protocol number.
1248938494Sobrien	Added field fs_version to struct fserver, so we can now store the
1249038494Sobrien	server protocol version.
1249138494Sobrien
1249238494SobrienFri May  9 01:09:45 1997  Erez Zadok  <ezk@lorien.cs.columbia.edu>
1249338494Sobrien
1249438494Sobrien	* aux/macros/check_field.m4 (AC_MOUNT_HEADERS): map '.' (dot) into
1249538494Sobrien	underscores too, so I can test for sub-fields.
1249638494Sobrien
1249738494Sobrien	* libamu/wire.c: use test that checks for sub-fields of struct
1249838494Sobrien	ifreq.
1249938494Sobrien
1250038494SobrienSat May  6 10:20:17 2000  Erez Zadok  <ezk@glory.soscorp.com>
1250138494Sobrien
1250238494Sobrien	* port to BSD/OS 3.0 completed!  Many xdr_ functions were broken
1250338494Sobrien	into smaller files.  M4 macros fixed to test for existence of
1250438494Sobrien	file systems using getvfsbyname().
1250538494Sobrien
1250638494Sobrien	* amd/sched.c (sigchld): signal handler must waitpid() for all
1250738494Sobrien	possible children.
1250838494Sobrien
1250938494Sobrien	* hlfsd/homedir.c: signal handler must waitpid() for all possible
12510174294Sobrien	children.
1251138494Sobrien
1251238494Sobrien	* aux/macros/check_restartable_signals.m4: new macro to determine
1251338494Sobrien	if need to reinstall signal handlers per OS is better than trying
1251438494Sobrien	to figure these out based on system macros.
1251538494Sobrien
1251638494SobrienFri May  5 19:23:28 2000  Erez Zadok  <ezk@glory.soscorp.com>
1251738494Sobrien
1251838494Sobrien	* amd/ops_nfs.c (mount_nfs_fh): set nfs_args_t version number.
1251938494Sobrien
1252038494Sobrien	* amd/ops_afs.c (mount_toplvl): set nfs_args_t version number.
1252138494Sobrien
1252238494Sobrien	* amd/ops_nfs.c (mount_nfs_fh): process nfs mount option resvport
1252338494Sobrien	(must be supplied for bsdi 3.0)
1252438494Sobrien
1252538494Sobrien	* libamu/wire.c: use HAVE_FIELD_STRUCT_IFREQ_IFR_ADDR (and
1252638494Sobrien	associated new macro) for determining the right way to compute the
1252738494Sobrien	size of the interface structure.
1252838494Sobrien
1252938494SobrienFri Apr 11 15:56:13 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1253038494Sobrien
1253138494Sobrien	* aux/configure.in: need to include libc before libnsl if
1253238494Sobrien	get_myaddress() is available because on irix libnsl has a buggy
1253338494Sobrien	get_myaddress().
1253438494Sobrien
1253538494Sobrien	* include/am_defs.h: make sure REINSTATE_SIGNAL_HANDLER is defined
1253638494Sobrien	on Irix 6 (an SVR4 variant)
1253738494Sobrien
1253838494SobrienThu Mar 27 02:28:40 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1253938494Sobrien
1254038494Sobrien	*******************************************************************
1254138494Sobrien	*** Released am-utils-6.0a4					***
1254238494Sobrien	*******************************************************************
1254338494Sobrien
1254438494SobrienWed Mar 26 21:15:36 1997  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1254538494Sobrien
1254638494Sobrien	* amd/amq_subr.c (ok_security): turned off insecure code unless
1254738494Sobrien	user explicitly runs configure --enable-amq-mount.
1254838494Sobrien
1254938494Sobrien	* hlfsd/hlfsd.c (main): use new protoypes dor create_nfs_service().
1255038494Sobrien
1255138494Sobrien	* amd/nfs_start.c (mount_automounter): use code that separately
1255238494Sobrien	creates the NFS and the amq service.  Register tcp and udp
1255338494Sobrien	services for amd.
1255438494Sobrien
1255538494Sobrien	* conf/transp/transp_*.c (create_amq_service): new function to
1255638494Sobrien	separately create the amq service for amd.  Simplified prototypes
1255738494Sobrien	for create_nfs_service().
1255838494Sobrien
1255938494SobrienWed Mar 19 20:40:56 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1256038494Sobrien
1256138494Sobrien	*******************************************************************
1256238494Sobrien	*** Released am-utils-6.0a3					***
1256338494Sobrien	*******************************************************************
1256438494Sobrien
1256538494SobrienWed Mar 19 17:49:18 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1256638494Sobrien
1256738494Sobrien	* new port: rs6000-ibm-aix3.2.5 and rs6000-ibm-aix4.1.5.0.  Lots
1256838494Sobrien	of small changes to support these two.
1256938494Sobrien
1257038494SobrienWed Mar 19 14:33:30 1997  Erez Zadok  <ezk@grande.cs.columbia.edu>
1257138494Sobrien
1257238494Sobrien	* conf/umount/umount_default.c (umount_fs): bug: unlock_mntlist()
1257338494Sobrien	should run if MOUNT_TABLE_ON_FILE, not otherwise.
1257438494Sobrien
1257538494SobrienMon Mar 17 22:02:43 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1257638494Sobrien
1257738494Sobrien	* hlfsd/hlfsd.c (main): fill in fhsize field if exists
1257838494Sobrien	(freebsd-2.2).
1257938494Sobrien
1258038494Sobrien	* amd/ops_{nfs,afs}.c (mount_toplvl): fill in fhsize field if
1258138494Sobrien	exists (freebsd-2.2).
1258238494Sobrien
1258338494SobrienSat Mar 15 19:37:48 1997  Erez "HWank1" Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1258438494Sobrien
1258538494Sobrien	* new port: i386-unknown-freebsd2.2.  FreeBSD 2.2 and higher
1258638494Sobrien	changed the filehandle type in struct nfs_args from nfsv2fh_t to
1258738494Sobrien	u_char.
1258838494Sobrien
1258938494SobrienSat Mar 14 10:11:03 1997  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1259038494Sobrien
12591174294Sobrien	* SHARED LIBRARIES: too many changes to list individually.  Now,
1259238494Sobrien	libamu can be built as a shared library, and other programs link
1259338494Sobrien	with it.
1259438494Sobrien
1259538494SobrienTue Mar 11 22:24:09 1997  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1259638494Sobrien
1259738494Sobrien	* aux/macros/opt_shared.m4: new macro for setting options for
1259838494Sobrien	building shared am-utils libraries.
1259938494Sobrien
1260038494SobrienSun Mar  9 19:17:46 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1260138494Sobrien
1260238494Sobrien	* fixmount/fixrmtab: cleaned up the script.
1260338494Sobrien
1260438494Sobrien	* fixmount/Makefile.am (EXTRA_DIST): adde $(sbin_SCRIPTS) so that
1260538494Sobrien	fixrmtab gets distributed too.
1260638494Sobrien
1260738494Sobrien	* conf/nfs_prot/nfs_prot_bsdi2.h: added support for MOUNTPROC_DUMP.
1260838494Sobrien	Added extern for xdr_mountlist().
1260938494Sobrien
1261038494Sobrien	* aux/configure.in: trimmed down many tests for MNT2_GEN_OPT,
1261138494Sobrien	MNT2_NFS_OPT, and MNTTAB_OPT that were not referenced anywhere in
1261238494Sobrien	the sources.
1261338494Sobrien
1261438494SobrienSat Mar  8 00:23:58 1997  Erez Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1261538494Sobrien
1261638494Sobrien	* fixmount/hlfsd ported to bsd44, hpux, and linux systems.
1261738494Sobrien
1261838494Sobrien	* aux/macros/check_fixmount_style.m4: add check for bsd44 systems.
1261938494Sobrien
1262038494Sobrien	* conf/fixmount/fixmount_default.c: use lockf() if flock() is
1262138494Sobrien	unavailable.
1262238494Sobrien
1262338494Sobrien	* include/am_defs.h: include <string.h> even if don't have
1262438494Sobrien	STDC_HEADERS defined (sunos4).
1262538494Sobrien	(seteuid): define seteuid() to be setresuid() for systems that
1262638494Sobrien	have but not the other (hpux).
1262738494Sobrien
1262838494Sobrien	* aux/macros/check_extern.m4: test should include <strings.h>.
1262938494Sobrien
1263038494SobrienTue Mar  4 17:16:52 1997  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1263138494Sobrien
1263238494Sobrien	* lib/xutil.c (debug_option): moved from amd/getargs.c to this
1263338494Sobrien	more proper file.
1263438494Sobrien
1263538494Sobrien	* include/am_utils.h: put in structure for debug options, for all
1263638494Sobrien	progams to use.
1263738494Sobrien
1263838494Sobrien	* amd/get_args.c: moved structure for debug options out.
1263938494Sobrien
1264038494SobrienSun Mar  2 00:13:07 1997  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1264138494Sobrien
1264238494Sobrien	* ported fixmount.
1264338494Sobrien
1264438494Sobrien	* lib/ualarm.c: replacement function for systems that don't have a
1264538494Sobrien	ualarm().
1264638494Sobrien
1264738494Sobrien	* ported fsinfo.
1264838494Sobrien
1264938494SobrienSun Mar  1 10:23:34 1997  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1265038494Sobrien
1265138494Sobrien	* ported mk-amd-map.
1265238494Sobrien
1265338494Sobrien	* buildall: added -K option to buildall, to run mkconf.
1265438494Sobrien
1265538494SobrienFri Feb 28 01:10:25 1997  Erez "HWank1" Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1265638494Sobrien
1265738494Sobrien	*******************************************************************
1265838494Sobrien	*** Released am-utils-6.0a2					***
1265938494Sobrien	*******************************************************************
1266038494Sobrien
1266138494SobrienThu Feb 27 13:58:59 1997  Erez "HWank1" Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1266238494Sobrien
1266338494Sobrien	* all *.[hcyl] files: add copyright line.
1266438494Sobrien
1266538494Sobrien	* aux/macros/check_mount_type.m4: test for mount type for
1266638494Sobrien	linux-like systems, by checking for loadable or statically linked
1266738494Sobrien	kernel filesystem modules.
1266838494Sobrien
1266938494Sobrien	* aux/macros/check_mnttab_type.m4: test for mount table entry
1267038494Sobrien	for linux-like systems, by checking for loadable or statically
1267138494Sobrien	linked kernel filesystem modules.
1267238494Sobrien
1267338494Sobrien	* aux/configure.in: pcfs filesystems can use vfat type (linux)
1267438494Sobrien
1267538494Sobrien	* aux/macros/check_fs_mntent.m4: test for filesystem existence for
1267638494Sobrien	linux-like systems, by checking for loadable or statically linked
1267738494Sobrien	kernel filesystem modules.
1267838494Sobrien
1267938494Sobrien	* conf/trap/trap_hpux.h: ugly hack added because of stupide HPUX
1268038494Sobrien	9.0 header files.  This should be removed when HPUX 9.0 is deemed
1268138494Sobrien	defunct.
1268238494Sobrien
1268338494Sobrien	* aux/acconfig.h: set an undefined variable for having an extern
1268438494Sobrien	to clnt_sperrno().
1268538494Sobrien
1268638494Sobrien	* include/am_defs.h: define extern for clnt_sperrno() if needed.
1268738494Sobrien
1268838494Sobrien	* aux/configure.in: test for extern clnt_sperrno().
1268938494Sobrien
1269038494Sobrien	* aux/macros/check_nfs_fh_dref.m4: HPUX's NFS fhandle dref is
1269138494Sobrien	similar to irix.
1269238494Sobrien
1269338494Sobrien	* aux/macros/check_mount_style.m4: use mount helper on HPUX.
1269438494Sobrien
1269538494Sobrien	* aux/macros/check_mtype_type.m4: hpux's mount type is a char*,
1269638494Sobrien	not integer (but may be mapped to one later).
1269738494Sobrien
1269838494Sobrien	* conf/mount/mount_hpux.c (mount_hpux): HPUX has confusing header
1269938494Sobrien	files.  They have mount(2) and vfsmount(2) which don't take same
1270038494Sobrien	arguments, and they have string mount types MNTTYPE_* as well as
1270138494Sobrien	integer types MOUNT_*.  So I need this new mount function to map
1270238494Sobrien	from string types to integer types for the vfsmount() function.
1270338494Sobrien
1270438494Sobrien	* conf/trap/trap_hpux.h (MOUNT_TRAP): instead of calling
1270538494Sobrien	vfsmount(), call mount_hpux().
1270638494Sobrien
1270738494SobrienThu Feb 27 03:34:14 1997  Erez "HWank1" Zadok  <ezk@okeeffe.cs.columbia.edu>
1270838494Sobrien
1270938494Sobrien	* lib/mount_fs.c (mnt_flags): make sure SYNC option is on only if
1271038494Sobrien	both MNTTAB_OPT_SYNC and MNT2_GEN_OPT_SYNC are defined.
1271138494Sobrien
1271238494SobrienThu Feb 27 00:26:00 1997  Erez "HWank1" Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1271338494Sobrien
1271438494Sobrien	* conf/nfs_prot/nfs_prot_hpux.h: NFS protocol definitions for
1271538494Sobrien	hpux.
1271638494Sobrien
1271738494Sobrien	* include/am_defs.h: no need to include rpc/auth.h or rpc/clnt.h.
1271838494Sobrien
1271938494Sobrien	* aux/configure.in: no need to test for rpc/auth.h and rpc/clnt.h.
1272038494Sobrien
1272138494Sobrien	* buildall: added ability to configure using other shells than
1272238494Sobrien	/bin/sh, on those systems where /bin/sh is buggy or limited
1272338494Sobrien	(HPUX).
1272438494Sobrien
1272538494Sobrien	* aux/macros/struct_nfs_fh.m4: reinstated the macro but have it
1272638494Sobrien	defined am_nfs_fh, and also test for plain typedef "nfs_fh".
1272738494Sobrien
1272838494Sobrien	* aux/acconfig.h: #undef am_nfs_fh, which is being defined by a
1272938494Sobrien	reinstated macro.
1273038494Sobrien
1273138494Sobrien	* aux/configure.in: check for <nfs/export.h>
1273238494Sobrien
1273338494Sobrien	* include/am_defs.h: include <nfs/export.h> (HPUX) if exists.
1273438494Sobrien
1273538494Sobrien	* aux/macros/try_compile_nfs.m4: include <nfs/export.h> (HPUX) if
1273638494Sobrien	exists.
1273738494Sobrien
1273838494Sobrien	* aux/macros/mount_headers.m4 (define): removed some non-working
1273938494Sobrien	(on HPUX) code that attempts to recreate the fhandle_t rather than
1274038494Sobrien	load it up from system headers.  Also added some NFS protocol
1274138494Sobrien	header inclusion.  include <nfs/export.h> (HPUX) if exists.
1274238494Sobrien
1274338494SobrienWed Feb 26 00:32:35 1997  Erez "HWank1" Zadok  <ezk@okeeffe.cs.columbia.edu>
1274438494Sobrien
1274538494Sobrien	* aux/macros/mount_headers.m4 (define): Use M4 changequote to
1274638494Sobrien	ensure [] brackets are correctly used.
1274738494Sobrien
1274838494Sobrien	* aux/macros/expand_cpp_{string,hex,int}.m4: encapsulate
1274938494Sobrien	multi-line M4 inclusions in [].
1275038494Sobrien
1275138494SobrienTue Feb 25 22:19:44 1997  Erez "HWank1" Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1275238494Sobrien
1275338494Sobrien	* conf/mtab/mtab_bsd.c (mnt_dup): use statfs field f_fstypename if
1275438494Sobrien	it exists.
1275538494Sobrien
1275638494Sobrien	* aux/acconfig.h: HAVE_FIELD_STRUCT_STATFS_F_FSTYPENAME, new
1275738494Sobrien	config.h macro for field f_fstypename of struct statfs.
1275838494Sobrien
1275938494Sobrien	* aux/configure.in: testing for field f_fstypename field of struct
1276038494Sobrien	statfs (NetBSD).
1276138494Sobrien
1276238494Sobrien	* aux/acconfig.h: moved all of the "static" definitions out to a
1276338494Sobrien	fixed file called include/am_defs.h.  Added to all */Makefile.am
1276438494Sobrien	files a dependency on am_defs.h.  Created am_defs.h of course, and
1276538494Sobrien	then added #include <amd_defs.h> to all of the source and header
1276638494Sobrien	files that required it.
1276738494Sobrien
1276838494SobrienMon Feb 24 01:27:02 1997  Erez Zadok  <ezk@defiant.soscorp.com>
1276938494Sobrien
1277038494Sobrien	* aux/acconfig.h: two more externals for xdr functions that may be
1277138494Sobrien	implemented by libamu.
1277238494Sobrien
1277338494Sobrien	* conf/nfs_prot/nfs_prot_bsdi2.h: added missing RPC and XDR
1277438494Sobrien	definitions.
1277538494Sobrien
1277638494SobrienSun Feb 23 15:25:26 1997  Erez "HWank1" Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1277738494Sobrien
1277838494Sobrien	* buildall (default): added -D option for turning on even stricker
1277938494Sobrien	developer options.
1278038494Sobrien
1278138494Sobrien	* */Makefile.am: make sure @AMU_NFS_PROT_HEADERS@ is used to
1278238494Sobrien	determine dependencies on optional NFS protocol headers.
1278338494Sobrien
1278438494Sobrien	* aux/acconfig.h: define and use HAVE_NFS_PROT_HEADERS as needed.
1278538494Sobrien
1278638494Sobrien	* aux/macros/check_nfs_prot_header.m4: new test to determine what
12787174294Sobrien	NFS protocol headers to use.
1278838494Sobrien
1278938494Sobrien	* conf/nfs_prot/nfs_prot_{irix6,sunos4,bsdi2}.h: new headers to
1279038494Sobrien	complete missing system headers for NFS protocol definitions.
1279138494Sobrien
1279238494SobrienSun Feb 16 15:58:42 1997  Erez "HWank1" Zadok  <ezk@vir.cs.columbia.edu>
1279338494Sobrien
1279438494Sobrien	* amd/ops_nfs.c (mount_nfs_fh): encapsulated some more code in
1279538494Sobrien	#ifdef's as needed.
1279638494Sobrien
1279738494Sobrien	* amd/ops_afs.c (mount_toplvl): make sure TIMEO/RETRANS code is
1279838494Sobrien	suitable #ifdef'ed.
1279938494Sobrien
1280038494Sobrien	* include/am_compat.h: a couple more mnttab options
1280138494Sobrien	(timeo/retrans) setting just in case.
1280238494Sobrien
1280338494Sobrien	* amd/autil.c (host_normalize): make sure hostent->h_name is
1280438494Sobrien	passed a non-const char *.
1280538494Sobrien
1280638494Sobrien	* conf/mount/mount_linux.c (mount_linux): cleaned up a block of code.
1280738494Sobrien
1280838494Sobrien	* {lib,amq,amd}/*.c (many functions): cast xdr_entry to
1280938494Sobrien	XDRPROC_T_TYPE.
1281038494Sobrien
1281138494Sobrien	* lib/nfs_prot_svc.c (nfs_program_2): cast xdr_entry to
1281238494Sobrien	XDRPROC_T_TYPE.
1281338494Sobrien
1281438494Sobrien	* lib/nfs_prot_xdr.c (xdr_entry): cast xdr_entry to
1281538494Sobrien	XDRPROC_T_TYPE.
1281638494Sobrien
1281738494Sobrien	* lib/wire.c (getwire): Make sure safe assignment from const to
1281838494Sobrien	none is done.
1281938494Sobrien
1282038494SobrienSat Feb 15 19:38:51 1997  Erez "HWank1" Zadok  <ezk@vir.cs.columbia.edu>
1282138494Sobrien
1282238494Sobrien	* aux/macros/expand_cpp_int.m4: new macro for expanding integers.
1282338494Sobrien
1282438494Sobrien	* aux/configure.in: added linux/fs.h support in configure and
1282538494Sobrien	several M4 macros.
1282638494Sobrien
1282738494Sobrien	* conf/mount/mount_linux.c (mount_linux): use macro instead of
1282838494Sobrien	"ugly" fixed hex number for mount() arguments.
1282938494Sobrien
1283038494SobrienSat Feb 15 02:09:47 1997  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1283138494Sobrien
1283238494Sobrien	* amd/info_hesiod.c: removed macro HAVE_HS_ZONE_TRANSFER and
1283338494Sobrien	turned all of its code always on.  That code always seems to
1283438494Sobrien	compile, as long as you have hesiod and libresolv.
1283538494Sobrien
1283638494Sobrien	* amd/mapc.c: removed macro HAVE_HS_ZONE_TRANSFER and turned all
1283738494Sobrien	of its code always on.
1283838494Sobrien
1283938494Sobrien	* aux/configure.in: removed superfluous test for hs_zone_transfer
1284038494Sobrien	function (will never find it because it is an amd-internal
1284138494Sobrien	function).
1284238494Sobrien
1284338494Sobrien	* amd/mapc.c (maptypes): must used correct new name for am-utils'
1284438494Sobrien	hesiod initialization function: hesiod_am_init.
1284538494Sobrien
1284638494Sobrien	* amd/info_hesiod.c (hesiod_am_init): renamed hesiod_init to
1284738494Sobrien	hesiod_am_init so as not to conflict with libhesiod's
1284838494Sobrien	hesiod_init() function.
1284938494Sobrien
1285038494Sobrien	* aux/configure.in: added test and explicit inclusion of
1285138494Sobrien	libresolv.a for later resolution of library references with
1285238494Sobrien	libhesiod.
1285338494Sobrien
1285438494Sobrien	* aux/macros/opt_cppflags.m4: new file.  configure/compile C
1285538494Sobrien	preprocessor flags.
1285638494Sobrien
1285738494Sobrien	* aux/macros/opt_libs.m4: new file.  configure/compile library
1285838494Sobrien	flags.
1285938494Sobrien
1286038494Sobrien	* Makefile.am (EXTRA_DIST_AUX): include two new macros
1286138494Sobrien	opt_cppflags.m4 and opt_libs.m4.
1286238494Sobrien
1286338494Sobrien	* aux/configure.in: test for libhesiod needs to additional
1286438494Sobrien	libresolv to link completely.  Additional configuration time
1286538494Sobrien	options added for setting initial CPPFLAGS and LIBS.
1286638494Sobrien
1286738494SobrienTue Feb 10 02:15:40 1997  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1286838494Sobrien
1286938494Sobrien	*******************************************************************
1287038494Sobrien	*** Released am-utils-6.0a1					***
1287138494Sobrien	*******************************************************************
1287238494Sobrien
1287338494SobrienThu Feb  6 02:55:19 1997  Erez "HWank1" Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1287438494Sobrien
1287538494Sobrien	* amd/info_ndbm.c (ndbm_search,ndbm_init): fixed the code so that
1287638494Sobrien	it works on freebsd, where they map dbm_pagfno a non-existing
1287738494Sobrien	macro on purpose, to force you to port the code to Berkeley DB.
1287838494Sobrien
1287938494SobrienFri Jan 31 01:35:09 1997  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1288038494Sobrien
1288138494Sobrien	* amd/ops_afs.c (mount_toplvl): added a sleep(1) right before the
1288238494Sobrien	actual mount_toplvl, to avoid some possible race conditions.
1288338494Sobrien
1288438494SobrienThu Jan 30 02:31:49 1997  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1288538494Sobrien
1288638494Sobrien	* amd/rpc_fwd.c: removed all TLI (HAVE_T_OPEN) code.
1288738494Sobrien
1288838494SobrienWed Jan 29 18:25:07 1997  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1288938494Sobrien
1289038494Sobrien	* lib/wire.c (getwire): removed HAVE_T_OPEN (TLI code)
1289138494Sobrien
1289238494Sobrien	* amd/amd.c (main): fix local address using htonl(). Free up
1289338494Sobrien	buffers allocated by netdir_*() functions.
1289438494Sobrien
1289538494SobrienWed Jan 22 23:53:24 1997  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1289638494Sobrien
1289738494Sobrien	* amd/fix-amd-map.in: new script that will convert old-style amd
1289838494Sobrien	maps to new one.
1289938494Sobrien
1290038494SobrienTue Jan 21 01:18:16 1997  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1290138494Sobrien
1290238494Sobrien	* FIRST AMD IN AM-UTILS FINALLY WORKS (mounts itself as toplvl,
1290338494Sobrien	and replies back to simple nfs/link type mount queries).
1290438494Sobrien
1290538494Sobrien	* conf/mtab/mtab_svr4.c: reorganized the code in this file to be
1290638494Sobrien	easier to read, and fixed a few bugs with un/setting the lock file
1290738494Sobrien	descriptor.
1290838494Sobrien
1290938494SobrienWed Jan  8 15:27:49 1997  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1291038494Sobrien
1291138494Sobrien	* amd/sched.c: removed HAS_SVR3_SIGNALS code to handle older
1291238494Sobrien	signals in Svr3 systems.  Only stellix ever used this.
1291338494Sobrien
1291438494Sobrien	* amd/rpc_fwd.c (fwd_reply): removed all code that was triggered
1291538494Sobrien	by DYNAMIC_BUFFERS, since it was not in use.
1291638494Sobrien
1291738494SobrienTue Jan  7 00:45:59 1997  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1291838494Sobrien
1291938494Sobrien	* amd/opts.c (eval_opts): removed AMD_COMPAT code.  Amd no longer
1292038494Sobrien	takes '=' sign as old selector.  Fix your maps.
1292138494Sobrien	(deslashify): removed APOLLO code that treated two '//' as one.
1292238494Sobrien
1292338494SobrienSun Jan  5 01:25:09 1997  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1292438494Sobrien
1292538494Sobrien	* amd/ops_nfsx.c (nfsx_init): removed HARD_NFSX_ERRORS, code which
1292638494Sobrien	was not used.  It made any submount error fail the whole group.
1292738494Sobrien
1292838494Sobrien	* amd/ops_nfs.c (make_nfs_auth): removed code dependent on
1292938494Sobrien	HAS_NFS_QUALIFIED_NAMES.
1293038494Sobrien	(mount_nfs_fh): removed macro for NFS_ARGS_NEEDS_PATH, assuming it
1293138494Sobrien	is never on.  So code that was triggered by #ifndef
1293238494Sobrien	NFS_ARGS_NEEDS_PATH (osf1, aix3, and bsd44 variants) may have to
1293338494Sobrien	be fixed later.
1293438494Sobrien	Removed all ULTRIX_HACK code.  Ultrix is DEAD!
1293538494Sobrien	removed all PRESET_AC code, which was only on for Linux to preset
1293638494Sobrien	the attribute cache values (otherwise they default to zero).
1293738494Sobrien	(nfs_umounted): revobed KICK_KERNEL code (IRIX systems).  Will
1293838494Sobrien	have to fixed up later.
1293938494Sobrien	(mount_nfs_fh): removed code that was never included, which
1294038494Sobrien	attempted to set the port on which amd's nfs mounts on.  This
1294138494Sobrien	isn't supported by the ping algorithm yet.  In any case, it is all
1294238494Sobrien	done in nfs_init().
1294338494Sobrien
1294438494Sobrien	* amd/srvr_nfs.c (find_nfs_srvr), amd/ops_nfs.c (mount_nfs_fh):
1294538494Sobrien	removed HAS_TCP_NFS code.  The whole use of NFS V.3 with TCP or
1294638494Sobrien	specially hacked NFS V.2 that uses TCP (BSD 4.4 variants) will
1294738494Sobrien	have to be addressed later.
1294838494Sobrien
1294938494Sobrien	* amd/nfs_subr.c (nfsproc_getattr_2): removed all code dependent
1295038494Sobrien	on PRECISE_SYMLINKS.
1295138494Sobrien
1295238494Sobrien	* amd/mapc.c (mapc_meta_search): removed code that depended on
1295338494Sobrien	HAS_DEPOT.  It is known buggy code.  The whole DEPOT support needs
1295438494Sobrien	to be rethought.
1295538494Sobrien	(mapc_add_kv): ported code to use standard regular expression
1295638494Sobrien	(regexp) library.
1295738494Sobrien
1295838494Sobrien	* amd/{map.c,ops_sfs.c,ops_ufs.c}: removed all code dependent on
1295938494Sobrien	FLUSH_KERNEL_NAME_CACHE and the macro itself.
1296038494Sobrien
1296138494SobrienSat Jan  4 15:46:58 1997  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1296238494Sobrien
1296338494Sobrien	* amd/map.c (exported_ap_alloc): removed all code triggered by
1296438494Sobrien	SHRINK_EXPORTED_AP and the macro itself.
1296538494Sobrien
1296638494Sobrien	* amd/info_nis.c: removed HAS_NIS_RELOAD macro, and left the code
1296738494Sobrien	in all the time.  Assuming that there is always NIS realod
1296838494Sobrien	available.
1296938494Sobrien	(yp_all_fixed): removed code for BROKEN_YP_ALL.  If your yp_all()
1297038494Sobrien	function is broken such that it does not release filedescriptors
1297138494Sobrien	it created, then you are hosed.  Get a fix for yp_all from your
1297238494Sobrien	vendor or switch operating systems.
1297338494Sobrien
1297438494SobrienTue Dec 31 15:34:36 1996  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1297538494Sobrien
1297638494Sobrien	* amd/info_hesiod.c: renamed macro HAS_HESIOD_RELOAD to
1297738494Sobrien	HAVE_HS_ZONE_TRANSFER.
1297838494Sobrien
1297938494SobrienMon Dec 30 17:33:23 1996  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1298038494Sobrien
1298138494Sobrien	* amd/{nfs,host}_ops.cremoved INFORM_MOUNTD macro, so its code is
1298238494Sobrien	always included.  We should always try to inform the remove mount
1298338494Sobrien	daemon of mounts we performed.  If we want an option for this, it
1298438494Sobrien	should be a run-time option.
1298538494Sobrien
1298638494Sobrien	* amd/host_ops.c: removed all that optionally did not make the
1298738494Sobrien	directory mount points for amd.
1298838494Sobrien
1298938494Sobrien	* HOST_EXEC code removed from everywhere.  There is no indication
1299038494Sobrien	that it was used anywhere.  If it needs to be used, then a
1299138494Sobrien	run-time switch should control it.
1299238494Sobrien
1299338494SobrienThu Dec 26 00:06:52 1996  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1299438494Sobrien
1299538494Sobrien	* amd/*_ops.c: removed all references to mntent_t's fields
1299638494Sobrien	mnt_freq and mnt_passno, since they are no longe rused (and never
1299738494Sobrien	have been).
1299838494Sobrien
1299938494Sobrien	* amd/am_ops.c: removed function sunos4_match, which was off
1300038494Sobrien	anyway.  This was one of the places where an '=' sign was allowed
1300138494Sobrien	as an assignment operator (which is now ':=').
1300238494Sobrien
1300338494Sobrien	* amd/afs_ops.c (afs_bgmount): removed SUNOS4_COMPAT code which
1300438494Sobrien	was off anyway.  This was one of the places where an '=' sign was
1300538494Sobrien	allowed as an assignment operator (which is now ':=').
1300638494Sobrien
1300738494SobrienTue Dec 24 01:53:52 1996  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1300838494Sobrien
1300938494Sobrien	* amq/amq.c: ported to am-utils.  Working.
1301038494Sobrien
1301138494Sobrien	* conf/mount/mount_svr4.c (mount_svr4): changed mount type on svr4
1301238494Sobrien	to be string, as it should be (rather than a string mapped to int
1301338494Sobrien	and back mapped to string).
1301438494Sobrien
1301538494SobrienSun Dec 22 13:26:05 1996  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1301638494Sobrien
1301738494Sobrien	* lib/mount_fs.c (mount_fs): removed MNTINFO_PREF code.
1301838494Sobrien
1301938494Sobrien	* lib/umount_fs.c: split this into three files: default, osf, and
1302038494Sobrien	bsd44, that are in conf/umount/umount_*.c.
1302138494Sobrien
1302238494SobrienThu Dec 19 17:33:46 1996  Erez "HWank1" Zadok  <ezk@lorien.cs.columbia.edu>
1302338494Sobrien
1302438494Sobrien	* aux/configure.in, aux/aclocal.m4, aux/acconfig.h: added new
1302538494Sobrien	macro to automatically figure out if an external definition for
1302638494Sobrien	sys_errlist[] exists.
1302738494Sobrien
1302838494Sobrien	* lib/xutil.c (xfree): removed "#undef free" because it's not
1302938494Sobrien	needed there.  Any system that redefines free() needs help.
1303038494Sobrien
1303138494Sobrien	* conf/mtab/mtab_file.c (REWRITE_MTAB_IN_PLACE): removed code that
1303238494Sobrien	was dependent on REWRITE_MTAB_IN_PLACE.  It does not appear to be
1303338494Sobrien	in active use anywhere.  If added later, it should be a run-time
1303438494Sobrien	configuration option.
1303538494Sobrien
1303638494Sobrien	* conf/mtab/mtab_mach3.c: removed code that was #ifdef'ed not to
1303738494Sobrien	be MOUNT_TABLE_ON_FILE, since mach2 always stores its mount tables
1303838494Sobrien	in a file in /etc.
1303938494Sobrien
1304038494Sobrien	* lib/util.c (str3cat): removed _AIX code.  AIX should have a
1304138494Sobrien	working realloc, or else find a cleaner solution to this.
1304238494Sobrien	(mkdirs): removed SUNOS4_WORKAROUND code.  This was to do a sync()
1304338494Sobrien	after immediately making directories so that fsck will be able to
1304438494Sobrien	fix the filesystem in the event of an immediate crash.  This was
1304538494Sobrien	because a bug in UFS which is fixed by now.
1304638494Sobrien
1304738494Sobrien	* lib/hutil.c (domain_strip): removed PARTIAL_DOMAINS triggered
1304838494Sobrien	code.  Does not appear to be on and used anywhere.
1304938494Sobrien	(dofork): removed MACH3 code, b/c mach3 NFS bugs are fixed by now.
1305038494Sobrien
1305138494Sobrien	* lib/resvport.c: split the binding of reserved ports code to a
1305238494Sobrien	separate file.  A #define (HAVE_T_OPEN) separates the TLI (SVR4)
1305338494Sobrien	from the BSD code.
1305438494Sobrien
1305538494SobrienThu Dec 19 02:08:35 1996  Erez "HWank1" Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1305638494Sobrien
1305738494Sobrien	* lib/Makefile.am (amu_LIBADD): includs @LIBOBJS@ now, auto-filled
1305838494Sobrien	in by automake and configure, for optional sources that need to be
1305938494Sobrien	built as part of libamu.a.
1306038494Sobrien
1306138494Sobrien	* aux/aclocal.m4: Make sure AC_CHECK_MOUNT_STYLE adds mountutil.o
1306238494Sobrien	to LIBOBJS.
1306338494Sobrien
1306438494Sobrien	* lib/memcmp.c (memcmp): new file added to replace a possible bad
1306538494Sobrien	implementation of memcmp.
1306638494Sobrien
1306738494SobrienWed Dec 18 22:20:23 1996  Erez "HWank1" Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1306838494Sobrien
1306938494Sobrien	* converted the sources to use memset/memmove/memcmp instead of
1307082794Sobrien	bzero/bcopy/bcmp.
1307138494Sobrien
1307238494Sobrien	* ran all sources through gnu Indent w/ options specified in
1307338494Sobrien	aux/amindent.
1307438494Sobrien
1307538494SobrienWed Dec 11 22:19:29 1996  Erez "HWank1" Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1307638494Sobrien
13077174294Sobrien	* At this point the initial generation of config.h via autoconf and
1307838494Sobrien	some preliminary makefiles via automake is done.  I will not begin
1307938494Sobrien	modifying sources, so it's a good time to document from here.
1308082794Sobrien
1308182794SobrienWed Dec 10 22:19:29 1996  Erez "HWank1" Zadok  <ezk@shekel.mcl.cs.columbia.edu>
1308282794Sobrien
1308382794Sobrien	*******************************************************************
1308482794Sobrien	*** Initial ChangeLog Entry					***
1308582794Sobrien	*******************************************************************
13086