LD_PRELOADed code before or after exec - different behavior after 6.x

2012-08-24 Thread John Hein
head sl.cc pe.c ==> sl.cc <== #include #include class C { public: C(){ printf("C\n"); unsetenv("XXX"); } }; static C c; ==> pe.c <== #include #include int main() { char *p=getenv("XXX"); if (p != NULL) printf("XXX=%s\n",p); return 0; } % g++ -fpic -shared sl.cc -o sl.so % gcc

Re: LD_PRELOADed code before or after exec - different behavior after 6.x

2012-08-24 Thread John Hein
John Hein wrote at 09:17 -0600 on Aug 24, 2012: > > head sl.cc pe.c > ==> sl.cc <== > #include > #include > class C > { > public: > C(){ > printf("C\n"); > unsetenv("XXX"); > } > }; > static C c; > > ==> pe.c <== > #include > #include > int > main() > { > char *p

Re: LD_PRELOADed code before or after exec - different behavior after 6.x

2012-08-24 Thread John Hein
John Hein wrote at 09:34 -0600 on Aug 24, 2012: > John Hein wrote at 09:17 -0600 on Aug 24, 2012: > > > > head sl.cc pe.c > > ==> sl.cc <== > > #include > > #include > > class C > > { > > public: > > C(){ > > printf("C\n"); > > unsetenv("XXX"); > > } > > }; > >

Re: LD_PRELOADed code before or after exec - different behavior after 6.x

2012-08-24 Thread Konstantin Belousov
On Fri, Aug 24, 2012 at 09:17:22AM -0600, John Hein wrote: > > head sl.cc pe.c > ==> sl.cc <== > #include > #include > class C > { > public: > C(){ > printf("C\n"); > unsetenv("XXX"); > } > }; > static C c; > > ==> pe.c <== > #include > #include > int > main() > { > char *p=getenv("XX

Re: LD_PRELOADed code before or after exec - different behavior after 6.x

2012-08-24 Thread John Hein
Answers inline... Konstantin Belousov wrote at 19:23 +0300 on Aug 24, 2012: > On Fri, Aug 24, 2012 at 09:17:22AM -0600, John Hein wrote: > > > > head sl.cc pe.c > > ==> sl.cc <== > > #include > > #include > > class C > > { > > public: > > C(){ > > printf("C\n"); > > unsetenv("X

[patch] libc: Do not export .cerror

2012-08-24 Thread Jilles Tjoelker
For some reason, libc exports the symbol .cerror (HIDENAME(cerror)), albeit in the FBSDprivate_1.0 version. It looks like there is no reason for this since it is not used from other libraries. Given that it cannot be accessed from C and its strange calling convention, it is rather unlikely that oth

webdav locking issues

2012-08-24 Thread Da Rock
I did try without success to ask some aspect of this on the questions list, but I'm farther along with this anyway. I have an apache22 server setup with webdav for a subversion server. That is working well (I think, anyway), and I'm able access it from a Winblows XP vm I use for various testin