57 Commits

Author SHA1 Message Date
Jeffrey Altman
d8e1580e33 STABLE14-auditlogs-for-everyone-20050702
Windows build dependency changes to support the audit logs


(cherry picked from commit 16d67791dce45e5d4ee9b854c796492ffcde2113)
2005-07-11 20:08:35 +00:00
Derrick Brashear
8fe98ef379 STABLE14-vlprocs-extended-user-logging-20050618
update log message to provide full username


(cherry picked from commit b5461fc5a8350a5a1110e225da62caa7bf0e7245)
2005-06-21 21:19:29 +00:00
Derrick Brashear
3b5e10271f STABLE14-daemonize-log-somewhere-so-fds-can-close-without-harm-20050426
FIXES 18405

switch to VLog from printf


(cherry picked from commit e911b292af2c35f8f4af29aed26c557bf856d498)
2005-04-27 02:37:04 +00:00
Jeffrey Altman
04d86d2038 STABLE14-windows-pcache-20050310
This patch applies all of the work done to add persistent cache support,
cache manager debugging, and a variety of bug fixes.  A full description
will be committed within doc/txt/winnotes as part of a later commit.


(cherry picked from commit 0b90d69f8a44e6c7ba20553cfb7d5cf7072bab57)
2005-03-11 07:22:30 +00:00
Derrick Brashear
df7ff685b7 STABLE14-resync-20041018
cheat. pull in all the 1.3.71->head changes in one delta
2004-10-18 08:11:37 +00:00
Jeffrey Altman
432479c4bb mpr-lib-required-20040805
All executables which include the pioctl functions now require mpr.lib
to be linked
2004-08-05 17:31:34 +00:00
Jeffrey Altman
6b488b4c99 batch-commits-windows-20040529
* Fixed DNS lookups to work consistently throughout the OpenAFS
     product instead of just from within the afsd_service.exe

   * Added a runtime check to ensure that AFS Client Service SMB
     Server is accepting connections before attempting to mount
     global drives.

   * Read IP addresses for volume servers out of the CellServDB
     file if gethostbyname() on the hostname fails.

   * Fix getcellconfig() to populate both the Hostnames as well
     as IP addresses when loading cell data via DNS

   * Increase the Connection Dead Time to 50 from 20 seconds
     Increase the Hard Dead Time to 120 from 40 seconds
     (matches the Unix values)

   * Fixed an assertion validating the number of allocated NCBs

   * Fixed the build environment to consistently build for
     Windows 2000 and above.  (APPVER = 5.0)

   * Fixed rx_debug to properly validate the receipt in incoming
     data with select() and recvfrom().  Do not copy data out of
     the socket buffer unless success is indicated.
2004-05-30 00:47:59 +00:00
Jeffrey Altman
21caaae64f ticket-2618-patches-20031207
TICKET 2618

flexelint patches for prototype handling from Joe Beuhler

>>>>>>>>>>>>>>>>>>>>>>>>>>>>

This patch adds a bunch of missing prototypes, makes various
corrections to global prototypes, and removes global declarations that
are not needed.

One set of added prototypes is commented out because it applies to
some printf-like functions that are implemented the way it used to be
done before varargs existed, and they need to be unprototyped or the
code will fail to compile.  (There are a number of functions in the
OpenAFS code that need to be converted to use varargs...)

There is one place of note in src/WINNT/afsd/fs.c where typedefs for
afs_int32 and afs_uint32 conflict with afs/stds.h.  I just added a
note to that effect.

Prototypes in src/WINNT/afsd/fs.c are incorrect for Windows NT.  I
don't know whether the return type involved changes from platform to
platform -- they come from .xg files.

Some prototypes are now commented out or #ifdef'd to match the code
that uses them.

Some global variables conflict between modules and have been made static.
The bufferBlock variable was of two completely different types...

In src/config/stds.h, I changed the declaration of afs_intmax_t to
reflect the fact that the Windows platform supports 64 bit integers.
This may be incorrect semantically, but I believe it is needed for the
%llx format to match afs_intmax_t arguments (for printing of inodes
mainly, I believe).

There were two different declarations for the rxkad_stats structure --
I synced them up.

- Joe

Removed the conflicting typedefs from src/WINNT/afsd/fs.c

Removed the changes to src/config/stds.h.  Added declaration of
AFS_64BIT_CLIENT to src/config/NTMakefile.i386_nt40 instead.

Do not remove unused variables which are defintions of data type
values.  Instead comment them out to avoid space utilization and
warnings.
2003-12-07 22:49:00 +00:00
Jeffrey Altman
61cf9fa731 jbeuhler-flexelint-bugs-found-20031128
This patch covers bugs found by running flexelint on
the CVS code on Windows NT.

- incorrect enum used in al_creds.cpp and various other files
- use of local after it goes out of scope in al_wizard.cpp
- uninitialized class members in afsclass/*
- cm_config.c looks like it has code commented out accidentally
- useless statement in alert.cpp
- no default case handling in problems.cpp
- strange use of & on booleans in set_clone.cpp
- fgets() and fclose() on closed stream in cellconfig.c
- memory leak in cellconfig.c
- *scanf into variables of unknown length in cellconfig.c
- incorrect pointer passed to getAFSServer() in cellconfig.c
- possible buffer overflows in userok.c
- address of array in bos.c
- too many arguments for printf() in commands.c
- return code not saved in bucoord/main.c
- bad types for argv arrays in bucoord/main.c
- probably incorrect initializer list in ol_verify.c
- extra argument to TLog() in lwps.c
- memory leak in cmd/cmd.c
- lack of typecast on malloc() in a couple files
- lower-case L for long constant in touch.c (is it a 1 or an l...)
- parentheses nesting error in util_cr.c
- apparently invalid case fall-through in util_cr.c
- various memory leaks in util_cr.c
- macro missing parens in crypt.c
- macro missing parens in quad_cksum.c
- null pointer deref in kpasswd.c (CVS work in progress?)
- Print_bos_ProcessState_p() code does not look correct
- extra argument to printf() in kas.c
- typo in vsprocs.c
- macro missing parens in iomgr.c
- address of array in threadname.c
- storing result of getch() in char type in waitkey.c (may not match EOF constant)
- storing pointer to local car in global in ptserver.c (benign -- it is in main())
- address of array in rx_lwp.c
- macro missing parens in rx_packet.h
- impossible == (signed vs. unsigned?) in rxdebug.c
- bogus constants in xdr.c and xdr_array.c (possible security implications?)
- incorrect test of fd for open file in update/server.c
- dangerous unparenthesized macro in get_krbrlm.c
- buffer overrun in regex.c
- missing comma causes string concat and bad array init in vlclient.c
- comparison of string < 0 in ntops.c
- default case has no code in vos.c
--
Joe Buehler

>>>>

Comments: Several comments for FIXME left in the code - unaddressed
2003-11-29 22:07:57 +00:00
Jeffrey Altman
21ca232974 jbeuhler-flexelint-fun-with-printf-20031128
This patch addresses a number of problems with printf-like functions.

Most of them are %x formats applied to pointers (which could be a
problem depending on the architecture I would assume).  There is a
%p format for pointers on many machines but I don't know if it
applies to all supported OpenAFS platforms so I didn't go that route.

There is a buffer overflow fix to ktime.c

There are a couple places where incorrect format characters were used.

One call had two arguments swapped.

Other fixes include the use of PrintInode() and %s formats for
printing inode numbers.  The code was inconsistent in this regard -- sometimes
PrintInode() was used, sometimes it was side-stepped.

There is one place where a local shadowed another variable, so I renamed
the local.

The last segment points out that an fdset need not be anything printable
with an integer format.
--
Joe Buehler

Comments - The fdset comment relates to a WinSock only file on which
the size is a pointer to int.  Modified the source to use a %p instead
of %x as it is supported on Windows.

Added an assert(p != NULL) to src/rx/rx_packet.c
2003-11-29 21:37:50 +00:00
Jeffrey Altman
fc7931f4f2 joe-beuhler-patches-20031122
Joe Beuhler's many patches merged into the tree
2003-11-23 04:52:52 +00:00
Jeffrey Altman
98544e6ab4 patch-from-shadow-to-jaltman-bkbox-20031120
This massive patch contains changes in several significant areas for Windows:

- the ability to specify the mount point to be something other than /afs

- functionality to assist debugging of the NT Services

- support for languages other than English (NTLang.bat)

- revisions to the Build system to support separate trees for src, obj,
  dest and free or checked; allow any MS compiler to be used

- updates to NSIS installer build

- mutex locking added to critical locations

- updates to IS5 directory tree creation

- update to afswsNetscape_config.sh
2003-11-21 07:59:35 +00:00
Nathan Neulinger
d4b1d61d21 regex-no-reg-basic-20031112
apparently not all posix regex implementations have REG_BASIC.
get rid of it since it's the default.
2003-11-12 14:23:30 +00:00
Garrett Wollman
5f705ff1b9 use-posix-regex-20031010
use posix regex if available instead of re_comp
eliminates need for -lcompat on the BSDs, so remove it from XLIBS
2003-10-10 15:08:31 +00:00
Robert S. Murawski
c1157da616 winnt-build-cleanup-20030825
include unified afs error support for winnt. removed dup'd code.

supports building an installer with NSIS

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

include unified afs error support for winnt. removed dup'd code.

supports building an installer with NSIS

remove orphaned osi_malloc header ref

====================

more updates. make libadmin build, fix dependancies for unified_afs,
copy rxstat header out during build

====================

fix NSIS installer build paths
clean up base64 support for nt
clean up int64 support in volser

====================

more updates. make libadmin build, fix dependancies for unified_afs,
copy rxstat header out during build
2003-08-26 04:03:32 +00:00
Derrick Brashear
872bc94f8c reindent-20030715
FIXES 1774

thanks to nneul@umr.edu for providing a script to do this.
gnu indent 2.2.9 options:
-npro -nbad -bap -nbc -bbo -br -ce -cdw -brs -ncdb -cp1 -ncs -di2 -ndj -nfc1
-nfca -i4 -lp -npcs -nprs -psl -sc -nsob -ts8

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================
FIXES 1774

fix subst mistake
2003-07-16 00:28:24 +00:00
Chaskiel M Grundman
bc9ff0f640 windows-file-versioning-20030619
FIXES 1488

It adds:

- the binary version of the file version/productversion, which the MSI
engine sort of want files in MSI packages to all have. This requires
another variable to be maintained in NTMakefile.i386_nt40 (Please don't
change the value from 1,2,910,0 to 1,2,9,1 or something like that. The last
number group in the version is considered completely insignificant by some
things)
- some file typing, which I don't know if anything cares about
- Some new items in the stringfileinfo table, (InternalName and
OriginalFilename) without which explorer won't show use the version info in
constructing tooltip text.
- Actually setting ProductVersion and FileVersion to something real
- Language codes, which the MSI engine also wants
2003-06-19 20:00:31 +00:00
Jeffrey Hutzelman
e011b31bfa syslog-tags-20030515
FIXES 1266

include a program tag in syslog output
2003-05-29 19:03:14 +00:00
James Peterson
5df76f7321 windows-build-updates-20030314
support for V6.0 and .Net complier, compile from either NT4.0 or XP
Source and object are separated into different directories.  The directory
tree would look as follows:

Base from %AFSROOT% environment variable
%AFSROOT%\src\... - all source and generated source
%AFSROOT%\obj\checked\... objects from a checked build
%AFSROOT%\obj\free\...    objects from a free build
%AFSROOT%\obj\dest\checked\...  DEST folder from a checked build
%AFSROOT%\obj\dest\free\....    DEST folder from a free build

Before you start the build, you must build an object tree by issuing the
following:

nmake -f NTMAKEFILE mkdir

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

support for V6.0 and .Net complier, compile from either NT4.0 or XP
Source and object are separated into different directories.  The directory
tree would look as follows:
2003-03-14 20:11:44 +00:00
Nathan Neulinger
6e823f2737 makefiles-cflag-cleanup-20030113
Fix lib ordering for cmd/util, remove redundant libs
2003-01-13 18:55:07 +00:00
Nathan Neulinger
580af44321 makefiles-cflag-cleanup-20030111
move cflags back to makefile.config, more cleanup, dup removal
2003-01-11 07:33:52 +00:00
Sam Hartman
92e76f7eb2 include-errno-dont-declare-it-20030111
include errno.h instead of extern int errno ourselves
2003-01-11 07:22:14 +00:00
Nathan Neulinger
782109a29b no-copy-libafs-builds-20021015
make things so file copies from src/libafs don't happen; change how libafs_tree is done
2002-10-16 04:58:13 +00:00
Derrick Brashear
641a84b67b prototypes-fixes-20020821
hopefully last of the lwp fun

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

make it build on the bsds

====================

nope. this time for sure (more lwp createprocess casting)

====================

clean up osi_UFSOpen prototyping

====================

aix gets bitter at this

====================

fix missed argument

====================

again, aix doesn't like this. so, we don't do it

====================

yup, aix still hates this

====================

dux compiler doesn't like this (i think this one is actually my fault)

====================

already prototyped in rxkad_prototypes.h

====================
causes multiple inclusion of protosw.h which isn't safe on irix.

====================

for some reason you just can't declare the same thing the same way twice

====================

make dux compiler happy. oops.
2002-08-22 23:37:11 +00:00
Nathan Neulinger
8f2df21ffe pull-prototypes-to-head-20020821
pull up prototypes to head
2002-08-21 19:52:17 +00:00
Derrick Brashear
08bb209eef getcellservdb-cleanup-20020608
based on comments and suggestion from Srikanth Vishwanathan <vsrikanth@in.ibm.com>
avoid deadlock. send back variable length list. allocate what we need to, and
be care to clean up after ourselves if there's an error. whether this
should be variable length is arguable but it's pretty clear no one was using
this before.
2002-06-08 12:01:59 +00:00
Love Hörnquist-Åstrand
a5cb7c256b rxgen-prototypes-fixes-20020310
prototype fixes as fallout from rxgen header prototypes

emit server stubs which include header as well
2002-03-10 19:07:56 +00:00
Mattias Amnefelt
7138b2734c afs-servers-use-rx-setnojumbo-interface-20020228
use rx library interface instead of tweaking in each program
2002-02-28 06:10:47 +00:00
Nickolai Zeldovich
ebb45c54d9 Fix some of the fallout from having rxgen-fabricated prototypes. 2002-02-25 09:31:08 +00:00
Nickolai Zeldovich
b00162aa76 vlserver-remove-duplicate-targets-20020101
"duplicates seem to confuse /usr/bin/make on MacOSX"
2002-01-02 04:08:37 +00:00
Nathan Neulinger
838e1eae1a build-system-specific-makefile-configuration-from-configure-20011031
junk all of Makefile.${SYS_NAME} in favor of a common makefile built by
configure, and use it
2001-11-01 04:59:26 +00:00
Jeff Riegel
c1d1a27ba9 freelance-updates-20011031
updates to make freelance patches work, create mountpoints from afsdb on the fly
2001-11-01 03:40:21 +00:00
Nathan Neulinger
e62e3c9b66 makefiles-attempt-to-support-gmake-j-20011023
move toward being able to gmake -j openafs
2001-10-23 21:57:19 +00:00
Nathan Neulinger
b9948dd965 initial-objdir-support-20011017
first cut at objdir support
2001-10-18 00:06:58 +00:00
Derrick Brashear
80afed9bf9 export-vlops-in-vldbint-xg-file-20010924
based on report from lha@stacken.kth.se

include vlops in the "published" interface

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

based on report from lha@stacken.kth.se

remove from vlserver.p.h
2001-09-24 13:17:16 +00:00
Derrick Brashear
ddb518c786 comerr-behave-like-the-rest-of-the-world-20010918
no other comerr changes the case of the error table name you specify in the
.et file. now neither does ours.
2001-09-18 05:26:47 +00:00
Walter Wong
7944ae223a misc-build-cleanup-20010917
1) Removal of unused variables
2) some NT ifdef cleanup
3) use of size_t rather than int to store the result of strlen()
4) some bugs that really only occured when errors occured.
5) some functions were implicitly declared as 'int' but doing a
   "return;" Some I declared as 'void' and prototyped them; some I
   just returned a value.

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

put symbol in an ifndef for winnt

====================


change erroneous void to int

====================

technically the cmdprocs return int

====================


update function to be void
2001-09-17 22:37:21 +00:00
Nathan Neulinger
2a12550e7c add-cvsignores-to-project-20010910
start at cvsignores
2001-09-10 21:14:01 +00:00
Jeffrey Hutzelman
80e2c2f8ce make-install-support-for-transarc-and-prefix-style-universes-20010907
according to jeff:
- Renames the top-level 'install' target to 'build'.  This should be
    transparent, since no one should be using that.

  - Improves on Sam's dirpath patches, by splitting out server binaries
    into separate bin, sbin, and libexec directories in GCS mode (these
    are all /usr/afs/bin in Transarc mode).

  - Updates the top-level 'all' target so that it builds the software
    but does not generate a dest tree.  Top-level 'lib' and 'include'
    directories are generated to hold the intermediate libraries and headers
    used during the build.

  - Adds a new top-level 'install' target, which installs things in the
    appropriate directories under ${DESTDIR}, based on configure's install
    directories plus the extras added by Sam's patch.

  - Adds a new top-level 'dest' target, which creates an old-style dest
    directory under ${DEST}.  The ${DEST} variable defaults to the
    traditional value of ${SRCDIR_PARENT}/${SYS_NAME}/dest.  Note that
    this variable used to be called ${DESTDIR}; it was renamed to avoid
    conflicts with the de facto standard usage of ${DESTDIR}.

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

fix missed makefile

====================

update another missed file

====================

eliminate bogus escaping

====================

get rid of another bogus escape

====================

remove unused include directory

====================

get rid of no longer used libdir

====================

remove unused incdir

====================

fix up some problems for make compatibility and missing trailing /

====================

put afs.exp in the right place

====================

remove bogus afssrvdir reference

====================

update dest version of output

====================

update ref to libexecdir

====================

kill refs to afssrvdir

====================


convert missed LIBDIR to TOP_LIBDIR

====================

remove explicit INSTALL and use makefile.@sys value instead

====================

except it's helpful to actually include makefile.@sys

====================

convert LIBDIR to TOP_LIBDIR
2001-09-10 20:15:57 +00:00
Nathan Neulinger
635df30c0f more-makefiles-cleanup-20010829
get rid of cases where we'd end up with two / because of DESTDIR pasting

macroize calls to rm

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

get rid of another case of bogus trailing quoting
2001-08-30 00:22:17 +00:00
Nathan Neulinger
b0c5f0cac6 makefile-updates-20010828
clean up all the makefiles to remove bogus targets, eliminate trailing /
requirement from DESTDIR, avoid needing to pass things like DESTDIR around
between makefiles

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

remove bogus quoting
2001-08-29 02:19:55 +00:00
Derrick Brashear
c5c521af0e convert-from-bsd-to-posix-string-and-memory-functions-20010807
bcopy, bcmp, bzero, index, rindex, you're all cut.
memcpy, memcmp, memset, strchr, strrchr, show us how it's done

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

fix reference to memset the right thing

====================

make change to arguments globally and not just for e.g. linux/darwin/fbsd

====================

fix a minor flub in how this was done

====================

correct another bad memcpy coversion

====================

fix up more inadvertant turds

====================

fix two errors found by chas williams
2001-08-08 03:05:55 +00:00
Nathan Neulinger
0207991adc convert-all-makefiles-to-makefile-ins-20010802
all relevant variables become subst'd and not passed in the environment
2001-08-02 16:45:35 +00:00
Nathan Neulinger
1fd4f11faf include-afsconfig-before-param-h-20010712
so stuff can be defined in afsconfig.h and included first
2001-07-12 20:58:15 +00:00
Nathan Neulinger
3d35839a13 vlserver-header-updates-20010711
autoconf-style header inclusion
2001-07-11 17:32:51 +00:00
Derrick Brashear
e6e84590d8 vlserver-remove-redundant-prototypes-20010705
so we get the prototypes whose types match
2001-07-05 16:44:33 +00:00
Nathan Neulinger
e7ec0d4213 afsconfig-and-rcsid-all-around-20010705
convert rest of source to afsconfig; include rcsid macros

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

remove bogus if/define/endif triple

====================

revert non-rcsid and afsconfig portion of patch
2001-07-05 16:20:00 +00:00
Nathan Neulinger
5349a4495d deal-with-printf-as-macros-20010623
gcc 3.x macroizes printf; deal appropriately
2001-06-23 15:50:12 +00:00
Nathan Neulinger
2a8a12e94b update-makefiles-for-afsconfig-h-20010517
more updates so afsconfig.h can be included
2001-05-18 02:22:10 +00:00
Jeff Riegel
7f4414ae39 win95-initial-port-20010430
Windows 95/98 port from IBM Almaden

documentation and build support

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

Windows 95/98 port from IBM Almaden

changes to cache manager

====================

Windows 95/98 port from IBM Almaden

makefile changes

====================

Windows 95/98 port from IBM Almaden

osi changes to support 95/98

====================

Windows 95/98 port from IBM Almaden

installer for 95/98 client

====================

Windows 95/98 port from IBM Almaden

win95/98 panel app

====================

Windows 95/98 port from IBM Almaden

win95/98 panel app help

====================

Windows 95/98 port from IBM Almaden

makefile changes plus dns implementation

====================

Windows 95/98 port from IBM Almaden

makefile changes plus changes for compat with dos line conventions

====================

Windows 95/98 port from IBM Almaden

config for 95/98

====================

Windows 95/98 port from IBM Almaden

makefile changes plus support for 95/98 env

====================

Windows 95/98 port from IBM Almaden

ms compiler changes

====================

Windows 95/98 port from IBM Almaden

makefile changes

====================

Windows 95/98 port from IBM Almaden

lwp changes
to support 95/98 port

====================

Windows 95/98 port from IBM Almaden

rx changes to support 95/98 port
2001-04-30 08:03:55 +00:00