openafs.git
20 years agodir-buffer-protos-20040123
Jim Rees [Fri, 23 Jan 2004 16:53:35 +0000]
dir-buffer-protos-20040123

take yet another stab at getting dir buffer prototypes right

20 years agonsis-run-time-lib-fixes-20040114
Jeffrey Altman [Thu, 15 Jan 2004 04:13:37 +0000]
nsis-run-time-lib-fixes-20040114

- Update the installer script to properly install the required
  runtime libraries for all compilers

- Update the AddToPath and RemoveToPath files

20 years agokdump-linux-sucks-more-20040113
Derrick Brashear [Wed, 14 Jan 2004 21:30:59 +0000]
kdump-linux-sucks-more-20040113

make it build on newer rhel

attempt to deal with hugemem kernel dumbness

20 years agoubik-election-epoch-fix-20040110
Jeffrey Hutzelman [Sat, 10 Jan 2004 16:59:35 +0000]
ubik-election-epoch-fix-20040110

ubik's ability to keep quorum broke when unix time passed 2^30 seconds.
Buy us another 2^30 seconds.

20 years agovos-move-copy-improvements-20040108
Jeffrey Hutzelman [Thu, 8 Jan 2004 21:54:10 +0000]
vos-move-copy-improvements-20040108

FIXES 2815

add switches to vos move and vos copy. add vos clone.

20 years agoavoid-long-windows-shell-timeouts-20040105
Jeffrey Altman [Sun, 4 Jan 2004 10:39:03 +0000]
avoid-long-windows-shell-timeouts-20040105

 * cm_conn.c: assume that if all of the servers for a cell are DOWN
   that there is NOSUCHVOLUME.  We can't return TIMEDOUT because
   this assumes there is a server which is up and the windows shell
   will in turn continue to try to reach it for several minutes on
   each refresh.  Of course, each refresh occurs more frequently
   than the timeouts.

   We can't return ALLOFFLINE because that in turn results in
   an attempt to cm_ForceUpdateVolume() will a NULL (cm_fid_t *).
   That in turn causes a null reference and a crash.

 * cm_volume.c: place a check in cm_ForceUpdateVolume() to return
   without performing its job if there is no (cm_fid_t *) value.
   Unfortunately, this in a ALLOFFLINE situation places the
   service into an infinite loop.

   Question: why is cm_ForceUpdateVolume() ever being called with
   a NULL parameter for the (cm_fid_t *)?

 * cm_smb.c: change the NTStatus for CM_ERROR_NOIPC to Remote
   Resources instead of Access Denied.

 * cm_buf.c: add a debugging statement

20 years agonsis-do-not-install-sdk-with-client-20040101
Jeffrey Altman [Fri, 2 Jan 2004 07:03:47 +0000]
nsis-do-not-install-sdk-with-client-20040101

From Rob Murawski: This is a diff with the changes we talked about for
making a separate section for the SDK files.  It is not installed by
default, unless the SDK files already exist.  (To keep them consistent
on the machine)

Also, a fix to the ShouldClientInstall function to properly handle
downgrades.

20 years agoundo-flexelint-screwage-20040101
Derrick Brashear [Thu, 1 Jan 2004 07:58:38 +0000]
undo-flexelint-screwage-20040101

irix cc wants this prototype

20 years agoirix-osi-prototypes-20040101
Derrick Brashear [Thu, 1 Jan 2004 07:47:54 +0000]
irix-osi-prototypes-20040101

add prototypes header for irix kernel module

20 years agovos-full-listvol-irix-20040101
Derrick Brashear [Thu, 1 Jan 2004 06:51:25 +0000]
vos-full-listvol-irix-20040101

irix needs a inet_ntoa prototype

20 years agoundo-flexelint-breakage-20040101
Derrick Brashear [Thu, 1 Jan 2004 06:22:31 +0000]
undo-flexelint-breakage-20040101

make irix cc happy

20 years agoundo-flexelint-damage-20040101
Derrick Brashear [Thu, 1 Jan 2004 05:56:25 +0000]
undo-flexelint-damage-20040101

unfortunately the problem with making flexelint happy is that irix's cc
becomes sad.

20 years agonsis-installer-20031230
Jeffrey Altman [Tue, 30 Dec 2003 22:34:18 +0000]
nsis-installer-20031230

remove some additional warning messages

20 years agonsis-installer-take-three-20031230
Jeffrey Altman [Tue, 30 Dec 2003 22:31:03 +0000]
nsis-installer-take-three-20031230

only use IsSilent on 2.0b3

20 years agonsis-installer-take-two-20031230
Jeffrey Altman [Tue, 30 Dec 2003 22:24:11 +0000]
nsis-installer-take-two-20031230

Left out one change

20 years agowindows-nsis-installer-update-20031230
Jeffrey Altman [Tue, 30 Dec 2003 22:21:33 +0000]
windows-nsis-installer-update-20031230

NSIS released v2.0 RC1 today.  Updated the installer script to
build with it.

20 years agofix-softsig-on-freebsd47-20031227
Nickolai Zeldovich [Sun, 28 Dec 2003 01:26:32 +0000]
fix-softsig-on-freebsd47-20031227

The workaround for Darwin of setting a signal handler for SIGUSR1 appears
to also be needed on FreeBSD 4.7.

20 years agodo-not-delete-krb5-ini-20031220
Jeffrey Altman [Sat, 20 Dec 2003 19:28:07 +0000]
do-not-delete-krb5-ini-20031220

Do not delete krb5.ini unless we were installing KfW

20 years agodir-header-dont-conflict-with-kernel-protos-20031208 openafs-devel-1_3_51
Derrick Brashear [Sat, 13 Dec 2003 00:04:56 +0000]
dir-header-dont-conflict-with-kernel-protos-20031208

kernel module has disjoint buffer package

20 years agolibadmin-test-client-restore-prototypes-20031212
Derrick Brashear [Fri, 12 Dec 2003 23:37:37 +0000]
libadmin-test-client-restore-prototypes-20031212

won't build without these. put em back.

20 years agodlq-moveb-also-returns-void-20031212
Derrick Brashear [Fri, 12 Dec 2003 23:29:49 +0000]
dlq-moveb-also-returns-void-20031212

nothing even uses it...

20 years agoulock-rellock-actually-returns-void-20031212
Derrick Brashear [Fri, 12 Dec 2003 23:16:12 +0000]
ulock-rellock-actually-returns-void-20031212

but seriously.

20 years agopath-fixes-for-bos-logs-20031211
Jeffrey Altman [Fri, 12 Dec 2003 01:21:06 +0000]
path-fixes-for-bos-logs-20031211

Fixes to paths to enable Bos Logs to function

-Rob

20 years agonsis-patches-20031211
Jeffrey Altman [Fri, 12 Dec 2003 01:20:14 +0000]
nsis-patches-20031211

To do list:

* remove /wizard from afssvrcfg.exe shortcuts

* add a "runonce" for afssvrcfg.exe /wizard when the Server is
installed

* enforce a restriction of no Freelance mode when the Server
is installed

* enforce a requirement of the Client install when the Server
is installed

* add a control panel shortcut to afssvrcfg.exe

* remove "recommended" tag from the AFS Server option

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

This is everything we talked about, plus:

1) Fixes the installer so re-installation behaves as expected.
All existing settings are preserved. (With the exception of what
is modifiable during install.  The cell name is prepopulated, but
the user CAN change it)
2) Likewise, an upgrade will retain previous settings.  (There
might be a point from which you cannot upgrade, i.e., from IBM
3.4 or something)
3) Variables named consistently, more code left out if NSIS 2.0b4.

-Rob

20 years agopr-initialize-silence-error-on-empty-dir-20031211
Derrick Brashear [Thu, 11 Dec 2003 19:06:16 +0000]
pr-initialize-silence-error-on-empty-dir-20031211

FIXES 2678

don't print an error if we're just flushing the cached directory info

20 years agonmake-convenience-20031210
Jeffrey Altman [Thu, 11 Dec 2003 03:57:56 +0000]
nmake-convenience-20031210

Add new targets  install-nsis and install-is5  to perform both a build
and an installer in one shot

20 years agofix-netaddconnection2-call-svr-config-20031210
Jeffrey Altman [Thu, 11 Dec 2003 03:21:20 +0000]
fix-netaddconnection2-call-svr-config-20031210

TEXT("") -> NULL

20 years agomurawski-20031210
Jeffrey Altman [Wed, 10 Dec 2003 22:17:48 +0000]
murawski-20031210

Murawski's daily patch for NSIS:

* user selectable registry settings

* generated files placed in $(OUT) tree

* installer produced in $(DEST) tree

* auto-detection of previous installation

* better naming to distinguish build date and Release vs Debug

20 years agonsis-registry-changes-20031210
Jeffrey Altman [Wed, 10 Dec 2003 18:12:01 +0000]
nsis-registry-changes-20031210

Turn off High Security Mode Logon Option
Turn on  Freelance Client
Turn off Use DNS
Turn on  Crypt Option

20 years agotal_string-was-coded-wrong-from-the-start-20031209
Jeffrey Altman [Wed, 10 Dec 2003 08:01:35 +0000]
tal_string-was-coded-wrong-from-the-start-20031209

tal_string defines three types: String, Ansi, Unicode
and provides functions to convert between them.  The
initial problem with this module was a lack of consistent
memory allocation.  The secondary problem was incorrect
conversion of between string types.

20 years agooops-20031209
Jeffrey Altman [Wed, 10 Dec 2003 07:49:55 +0000]
oops-20031209

oops, typos

20 years agotal_string-must-allocate-memory-20031209
Jeffrey Altman [Wed, 10 Dec 2003 07:48:06 +0000]
tal_string-must-allocate-memory-20031209

The tal_string routines must always allocate memory otherwise they
double free strings.

20 years agouse-closesocket-not-close-20031209
Jeffrey Altman [Wed, 10 Dec 2003 07:03:55 +0000]
use-closesocket-not-close-20031209

In Winsock, the function to close sockets is closesocket() not close()

20 years agodisable-optimizations-20031209
Jeffrey Altman [Wed, 10 Dec 2003 07:02:43 +0000]
disable-optimizations-20031209

Many of the subtle problems we are seeing with the AFS Server are
being aggrevated by compiler optimization bugs.  Disable for now.

20 years agovolser-salvagedirhandle-fix-arg-order-20031209
Derrick Brashear [Tue, 9 Dec 2003 23:07:57 +0000]
volser-salvagedirhandle-fix-arg-order-20031209

make the order of these consistent with the vol package

20 years agonsis-20b4-support-20031209
Jeffrey Altman [Tue, 9 Dec 2003 21:44:42 +0000]
nsis-20b4-support-20031209

Add support conditionally building NSIS 2.0b3 or 2.0b4

20 years agoremove-extraneous-appsver-20031209
Jeffrey Altman [Tue, 9 Dec 2003 21:34:00 +0000]
remove-extraneous-appsver-20031209

Remove extraneous reference to APPSVER variable.  This might have
been an attempt at turning on debug info for the .NET compiler
for non-debug builds.  The debug builds already have debug info
turned on.

20 years agofix-ih-lock-macros-20031209
Derrick Brashear [Tue, 9 Dec 2003 19:58:28 +0000]
fix-ih-lock-macros-20031209

FIXES 1774

probably safe to remove trailing ; in ihandle.h now too.

20 years agonsis-installer-updates-20031208
Jeffrey Altman [Mon, 8 Dec 2003 22:40:56 +0000]
nsis-installer-updates-20031208

From Rob Murawski.  Add upgrade/downgrade support to NSIS installer
Comment out the Loopback Installer code

20 years agovol-linux-dont-assume-ext2-20031208
Derrick Brashear [Mon, 8 Dec 2003 07:31:57 +0000]
vol-linux-dont-assume-ext2-20031208

to deal simply with /usr/include/linux potentially having 2.6 kernel headers
in newer linuxes. given that we might not have ext2 as root, this check
probably wasn't sufficient anyway.

20 years agoformat-fix-for-fs-windows-20031208
Jeffrey Altman [Mon, 8 Dec 2003 06:18:46 +0000]
format-fix-for-fs-windows-20031208

spacing errors in List Quota command

20 years agofssync-extern-loglevel-20031208
Derrick Brashear [Mon, 8 Dec 2003 06:09:12 +0000]
fssync-extern-loglevel-20031208

wanna use LogLevel to determine whether to log? make sure it's declared.

20 years agowinnt-afsd-fs-header-fix-20031208
Jeffrey Altman [Mon, 8 Dec 2003 06:08:45 +0000]
winnt-afsd-fs-header-fix-20031208

Improper prototype declaration

20 years agoprotoize-buffer-20031208
Derrick Brashear [Mon, 8 Dec 2003 06:03:58 +0000]
protoize-buffer-20031208

we need a definition for struct buffer. while we're at it, protoize the
whole file.

20 years agoptserver-prototype-ubik-20031208
Derrick Brashear [Mon, 8 Dec 2003 05:50:39 +0000]
ptserver-prototype-ubik-20031208

since ubik got prototypes, we have to make our shadow functions the same

20 years agoimport-fs-formatting-to-windows-20031207
Jeffrey Altman [Mon, 8 Dec 2003 04:32:27 +0000]
import-fs-formatting-to-windows-20031207

TICKET 2651

Import string formating from venus/fs.c

20 years agoset-service-error-condition-afsd-20031207
Jeffrey Altman [Mon, 8 Dec 2003 04:01:20 +0000]
set-service-error-condition-afsd-20031207

TICKET 2619

If the service crashes unexpectedly (eg, when the network adapter list
changes) we should return an error code so that system policy can be
used to determine if the service should be automatically restarted.
When there is an error GlobalStatus gets set to a non-zero value.
If GlobalStatus is set, we will return ERROR_EXCEPTION_IN_SERVICE
to the Service Manager.

20 years agoremove-int64-conversion-warnings-20031207
Jeffrey Altman [Mon, 8 Dec 2003 03:14:08 +0000]
remove-int64-conversion-warnings-20031207

Use casting to avoid repeated conversion warnings resulting in data loss.

20 years agojbuehler-add-missing-extern-c-patch-20031207
Jeffrey Altman [Mon, 8 Dec 2003 02:54:14 +0000]
jbuehler-add-missing-extern-c-patch-20031207

Add extern C modifiers to non-C++ functions in Windows files

20 years agomore-must-returns-20031207
Jeffrey Altman [Mon, 8 Dec 2003 02:41:17 +0000]
more-must-returns-20031207

More must returns value warnings cleaned up

20 years agontmakefile-fix-20031207
Jeffrey Altman [Mon, 8 Dec 2003 02:37:55 +0000]
ntmakefile-fix-20031207

remove extraneous include of src/config/NTMakefile.version

20 years agoadd-missing-return-values-20031207
Jeffrey Altman [Mon, 8 Dec 2003 01:45:23 +0000]
add-missing-return-values-20031207

Add missing return values producing warnings on Windows

20 years agoticket-2618-corrections-20031207
Jeffrey Altman [Sun, 7 Dec 2003 23:18:33 +0000]
ticket-2618-corrections-20031207

Remove extraneous declarations in dir.c

20 years agoticket-2618-patches-20031207
Jeffrey Altman [Sun, 7 Dec 2003 22:49:00 +0000]
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.

20 years agoafssvrcfg-updates-20031206
Jeffrey Altman [Sun, 7 Dec 2003 03:39:50 +0000]
afssvrcfg-updates-20031206

Replace the mechanism used to register drives with WNetAddConnection2.
This will hopefully be more reliable than then older code which was
unable to register drive mappings.

Corrected error string formatting.

20 years agoadd-multiple-interface-support-20031206
Jeffrey Altman [Sat, 6 Dec 2003 21:17:39 +0000]
add-multiple-interface-support-20031206

The ubik support on Windows only verified against the first
address on the system even if that address was assigned to
a disabled interface.

20 years agoreorg-ntbuild-20031206
Jeffrey Altman [Sat, 6 Dec 2003 20:11:12 +0000]
reorg-ntbuild-20031206

Reorganize ntbuild.bat to place all of the user edits at the front

20 years agofix-memory-alloc-srv-cfg-wizard-20031206
Jeffrey Altman [Sat, 6 Dec 2003 19:29:31 +0000]
fix-memory-alloc-srv-cfg-wizard-20031206

The Windows AFS Server Config Wizard would produce an invalid memory
deallocation error from the memory management routines due to the
failure to allocate PROGRESSDISPLAY objects with the same tools used
to deallocate them.

20 years agomore-NSIS-fixes-20031206
Jeffrey Altman [Sat, 6 Dec 2003 19:01:41 +0000]
more-NSIS-fixes-20031206

from Rob Murawski

20 years agoadd-pdb-files-to-server-nsis-20031206
Jeffrey Altman [Sat, 6 Dec 2003 17:41:53 +0000]
add-pdb-files-to-server-nsis-20031206

Add PDB files for debugging to NSIS Server install

20 years agomore-vc-net-installer-fixes-20031206
Jeffrey Altman [Sat, 6 Dec 2003 17:01:30 +0000]
more-vc-net-installer-fixes-20031206

Make sure we get the included libraries correct for install

20 years agoanother-correction-ntbuild-bat-20031206
Jeffrey Altman [Sat, 6 Dec 2003 16:01:03 +0000]
another-correction-ntbuild-bat-20031206

I wish .BAT files had IF-THEN-ELSE instead of just IF

20 years agono-debug-for-free-builds-20031206
Jeffrey Altman [Sat, 6 Dec 2003 15:41:38 +0000]
no-debug-for-free-builds-20031206

Reorganize makefile to not generate debug files for free builds.

20 years agocorrect-include-for-cl1300-20031206
Jeffrey Altman [Sat, 6 Dec 2003 15:40:17 +0000]
correct-include-for-cl1300-20031206

CL 1300 uses the mfcatl paths just like CL 1310

20 years agonsis-installer-updates-20031205
Jeffrey Altman [Sat, 6 Dec 2003 06:19:03 +0000]
nsis-installer-updates-20031205

Remove need for MakeCommon.bat

Produce nsi-includes.nsi from NTMakefile

Update OpenAFS.nsi to use MFC70.DLL and MFC71.DLL as needed.
(Need to confirm with Rob Murawski)

20 years agoproduct-version-number-update-20031205
Jeffrey Altman [Sat, 6 Dec 2003 06:15:46 +0000]
product-version-number-update-20031205

Modify the variables used to construct the product version numbers
to allow these same values to be used with the NSIS installer

20 years agotypo-correction-ntmakefile-20031205
Jeffrey Altman [Fri, 5 Dec 2003 23:17:20 +0000]
typo-correction-ntmakefile-20031205

Fix a typo in msvcrtd.dll reference

20 years agoupdates-to-NSIS-to-support-debug-crt-20031205
Jeffrey Altman [Fri, 5 Dec 2003 23:10:04 +0000]
updates-to-NSIS-to-support-debug-crt-20031205

Updates to NSIS installer scripts to conditionally build with
debug or non-debug CRT libraries; also, now supports conditional
library usage based upon the MS Compiler version used

20 years agoi386_nt40-lex-macro-fix-20031205
Jeffrey Altman [Fri, 5 Dec 2003 22:19:50 +0000]
i386_nt40-lex-macro-fix-20031205

Not that anyone has used it in forever and therefore would not notice
but the LEX macro was a version number "1.2.2 a" instead of a program
name.  Changed to "flex -l" but it really depends on which lex type
program is being used

20 years agoNSIS-installer-debug-mode-20031205
Jeffrey Altman [Fri, 5 Dec 2003 21:59:31 +0000]
NSIS-installer-debug-mode-20031205

NSIS installer debug mode activiation based upon AFSDEV_BUILDTYPE

20 years agopdb-files-for-checked-builds-20031205
Jeffrey Altman [Fri, 5 Dec 2003 21:56:33 +0000]
pdb-files-for-checked-builds-20031205

Produce PDB files in the DEST/CHECKED tree for use by NSIS installer

20 years agofix-ntbuild-bat-20031205
Jeffrey Altman [Fri, 5 Dec 2003 20:07:26 +0000]
fix-ntbuild-bat-20031205

Fix conditional contruction of AFSDEV_LIB variable

20 years agolargefile-support-continued-20031205
R. Lindsay Todd [Fri, 5 Dec 2003 08:35:57 +0000]
largefile-support-continued-20031205

FIXES 1493

configure switch and minor largefile cleanup. not done.

20 years agovos-full-listvol-on-by-default-20031204
Derrick Brashear [Thu, 4 Dec 2003 19:53:37 +0000]
vos-full-listvol-on-by-default-20031204

at the suggestion of miles@cs.stanford.edu

20 years agosalvager-remove-orphaned-header-20031204
Derrick Brashear [Thu, 4 Dec 2003 17:02:38 +0000]
salvager-remove-orphaned-header-20031204

FIXES 2522

this should be fixed for the global case, but that's harder to test

20 years agolibafsrpc-fix-objdir-breakage-20031204
Nathan Neulinger [Thu, 4 Dec 2003 16:47:05 +0000]
libafsrpc-fix-objdir-breakage-20031204

FIXES 2615

the not gmake workaround broke objdir builds. sigh.

20 years agosolaris-kdump-build-rationalization-20031204
Kris Van Hees [Thu, 4 Dec 2003 16:33:54 +0000]
solaris-kdump-build-rationalization-20031204

make kdump64 and kdump32 get built with sanity on solaris

20 years agosalvager-fix-misparented-vnode-1-20031204
Kris Van Hees [Thu, 4 Dec 2003 16:23:28 +0000]
salvager-fix-misparented-vnode-1-20031204

if vnode 1 gets a parent (which is incorrect) arrange for it to be cleaned
up properly

20 years agohpux-1123-update-20031204
Douglas Engert [Thu, 4 Dec 2003 16:10:43 +0000]
hpux-1123-update-20031204

update the hpux 11.23 on ia64 support
don't build libuafs. make kernel modules build. fix afsd.

20 years agofix-checked-build-libraries-20031203
Jeffrey Altman [Wed, 3 Dec 2003 23:28:50 +0000]
fix-checked-build-libraries-20031203

checked builds were linking against non-debug versions of the MFC libraries
which produced warnings at link time.  Replaced with the debug versions.

20 years agotypo-20031203
Jeffrey Altman [Wed, 3 Dec 2003 20:07:55 +0000]
typo-20031203

20 years agomore-missing-crtdbg-includes-20031203
Jeffrey Altman [Wed, 3 Dec 2003 20:06:37 +0000]
more-missing-crtdbg-includes-20031203

For when you are debugging ...

20 years agoadd-missing-include-file-afsd-windows-20031203
Jeffrey Altman [Wed, 3 Dec 2003 19:44:59 +0000]
add-missing-include-file-afsd-windows-20031203

ctrdbg.h but only when _DEBUG is defined

20 years agoi-hate-bat-files-20031203
Jeffrey Altman [Wed, 3 Dec 2003 19:24:38 +0000]
i-hate-bat-files-20031203

Add missing % at end of variable names to be compatible with cmd.exe

20 years agodo-not-make-commits-after-24hrs-awake-20031203
Jeffrey Altman [Wed, 3 Dec 2003 15:58:55 +0000]
do-not-make-commits-after-24hrs-awake-20031203

.BAT files do not use the same syntax as makefiles.
don't make commits after being up more than 24 hours straight.

20 years agontbuild-support-for-visual-studio-net-2003-20031202
Jeffrey Altman [Wed, 3 Dec 2003 04:53:12 +0000]
ntbuild-support-for-visual-studio-net-2003-20031202

Add LIB and INCLUDE files for Visual Studio .NET 2003
(Thanks to Rob Murawski for details)

20 years agorpc-rename-avoid-loop-20031201
Derrick Brashear [Mon, 1 Dec 2003 20:16:02 +0000]
rpc-rename-avoid-loop-20031201

enumerated solution (n vnodes cannot yield n+1 loop passes) suggested by
jhutz@cmu.edu. avoid looping forever on a corrupt parent.

20 years agotvolser-update-20031121
Derrick Brashear [Mon, 1 Dec 2003 05:35:04 +0000]
tvolser-update-20031121

add transaction mutex to handle global list of transactions

20 years agoremove-duplicate-include-from-shell-ext-cpp-20031130
Jeffrey Altman [Sun, 30 Nov 2003 15:39:33 +0000]
remove-duplicate-include-from-shell-ext-cpp-20031130

Remove atlconv.h include the second time it is listed

20 years agoupdate-version-number-for-windows-20031129
Jeffrey Altman [Sun, 30 Nov 2003 03:52:59 +0000]
update-version-number-for-windows-20031129

Updated the version number to 1.3.51 for both nt40 and win95
However, it is unlike that win95 will build at this point in time.
Its version of the makefile had not been touched since 1.2.2b

20 years agojaltman-missing-variable-20031129
Jeffrey Altman [Sat, 29 Nov 2003 22:50:14 +0000]
jaltman-missing-variable-20031129

jbuehler left out a variable declaration

20 years agojbeuhler-flexelint-bugs-found-20031128
Jeffrey Altman [Sat, 29 Nov 2003 22:07:57 +0000]
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

20 years agomissing-assert-h-20031129
Jeffrey Altman [Sat, 29 Nov 2003 21:46:30 +0000]
missing-assert-h-20031129

Missing assert.h for added assert()

20 years agojbeuhler-flexelint-fun-with-printf-20031128
Jeffrey Altman [Sat, 29 Nov 2003 21:37:50 +0000]
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

20 years agojaltman-flexelint-aggregate-initialization-patches-20031129
Jeffrey Altman [Sat, 29 Nov 2003 20:31:49 +0000]
jaltman-flexelint-aggregate-initialization-patches-20031129

Address FIXME concerns in jbuehler-flexelint-aggregate-initialization-patches-20031129

20 years agojbuelhler-flexelint-aggregate-initialization-patches-20031129
Jeffrey Altman [Sat, 29 Nov 2003 20:23:24 +0000]
jbuelhler-flexelint-aggregate-initialization-patches-20031129

This patch mainly makes explicit some initializations that were implicit.

There are several places where it looks like the missing initialization
may be a bug, and I have inserted comments to that effect in the
relevant patches.  Someone needs to look at them and supply
whatever is missing (if anything is).

In make_keyperm.c, an array was sized too large.
--
Joe Buehler

20 years agohpux-rx-attach-file-struct-to-socket-20031124 openafs-devel-1_3_50
Douglas Engert [Thu, 27 Nov 2003 05:52:51 +0000]
hpux-rx-attach-file-struct-to-socket-20031124

FIXES 2450

attach a struct file to the socket; clean up when done

20 years agosolaris-make-hates-dollar-lessthan-20031126
Derrick Brashear [Thu, 27 Nov 2003 02:27:55 +0000]
solaris-make-hates-dollar-lessthan-20031126

the $< macro support in solaris make is different from every other make
due to POSIX not being fully specific. a perl script cleans up the mess,
and gives us a different mess.

20 years agohpux-snprintf-support-20031126
Douglas Engert [Thu, 27 Nov 2003 01:23:13 +0000]
hpux-snprintf-support-20031126

FIXES 2587

need sys/socket.h on hpux

20 years agoia64-hpux1123-support-20031126
Douglas Engert [Thu, 27 Nov 2003 01:17:34 +0000]
ia64-hpux1123-support-20031126

FIXES 2579

necessary changes to support hpux 11.23 on ia64.