Trung Lê
72d0164644
Security: replace tmpnam() with mkstemp()
...
tmpnam() is inherently insecure due to race conditions between
filename generation and file creation (CWE-377). Replace all
occurrences with mkstemp() which atomically creates the file.
Pattern used (portable, already used elsewhere in CDE):
strcpy(tmpName, "/tmp/dtXXX_XXXXXX");
{ int _tf = mkstemp(tmpName); if (_tf >= 0) close(_tf); }
Files modified:
- lib/DtHelp/Access.c (2 occurrences)
- lib/DtSvc/DtUtil1/DtsMM.c (1 occurrence)
- lib/DtWidget/Editor.c (2 occurrences)
- lib/DtWidget/SearchCalls.c (1 occurrence)
- programs/dtcreate/main.c (2 occurrences)
- programs/dticon/main.c (1 occurrence)
- programs/dtlogin/policy.c (1 occurrence)
- programs/dtpad/fileIo.c (1 occurrence)
- programs/dtpdm/PdmXp.c (1 occurrence)
- programs/dtpdmd/manager.c (1 occurrence)
- programs/dtspcd/main.c (1 occurrence)
- programs/dtwm/WmResParse.c (1 occurrence)
Note: dtksh/ksh93 directory intentionally skipped (vendored code)
2026-01-29 17:10:18 +11:00
Chase
9a9d586e87
configure: detect libdl
2022-07-31 18:33:49 -06:00
Chase
edf4319548
Discontinue HPUX support
2022-07-23 17:49:33 -06:00
Jon Trulson
4b3901f63b
dtspcd: fix implicit-function-declaration warnings
2021-11-16 11:45:11 -07:00
Jon Trulson
51646fb06a
programs/: remove Imakefiles for completed modules
2021-07-03 19:12:43 -06:00
Jon Trulson
c40f0c9f08
Get /usr/dt/config populated correctly on make install
2019-12-02 14:33:05 -07:00
Jon Trulson
c329d5cfd7
Remove $(TIRPCINC) from all Makefile.am files - it no longer exists
...
Also, restructure some of the dependencies in the lib/tt binaries. We
will link with libtt (which will include libtirpc as a dependency),
and XTOOLLIB - all the right X11 stuff without needing to add it to
every OS. Removed several uneeded OS specializations ("if LINUX",
etc) as a result.
2019-11-20 18:52:29 -07:00
Jon Trulson
763cac54e4
dtspcd/dtterm: use proper DT_INCDIR rather than hardcoding the location
2019-11-20 17:31:53 -07:00
Jon Trulson
e675e06dd1
dtspcd: make it build
2019-11-19 19:43:34 -07:00
Jon Trulson
730da7747c
Change "if SUN" conditionals in remaining Makefile.am files to "if SOLARIS"
2019-10-28 18:54:17 -06:00
Chase
f42b0ce115
programs/dtspcd: add automake file
2019-10-23 15:34:20 -06:00
Ulrich Wilkens
07f272122d
Fix Linux rpc problems with new glibc
2018-05-31 18:00:22 -06:00
Ulrich Wilkens
16fbb15ecc
Fix BSD and Sun problems after coverity fixes
2018-05-31 17:46:03 -06:00
chase
4f5e7fe5e3
Use POSIX macros for linux
2018-05-24 18:22:55 -06:00
chase
164e695cd0
remove OSF1 support
2018-05-24 14:25:26 -06:00
chase
07900bd93b
Remove Unixware and openserver support
2018-05-20 12:13:07 -06:00
chase
8a4f389634
Remove UXPDS support
2018-05-15 20:27:22 -06:00
chase
6d3a19d8f9
Even more spelling fixed
2018-04-28 12:36:33 -06:00
chase
1fe5a550b2
Fix typo in license headers
2018-04-28 12:30:20 -06:00
Peter Howkins
9ef3b9ec68
dtspcd: Cov 89547, 175089
2018-04-04 20:37:13 +01:00
Jon Trulson
3c72e21cb2
dtspcd: coverity CID 174742; potential NULL derefs
2018-03-31 14:33:31 -06:00
Peter Howkins
0b93afd2ca
dtscpd: resolve compiler and coverity warnings
2018-03-28 02:08:36 +01:00
Jon Trulson
3c35e2d14d
xtclient.c, spcd_event.c: stop referencing fds_bits directly
2014-03-24 19:37:09 -06:00
Jon Trulson
9b699d3fb1
linux: build with thread safety and REENTRANT enabled.
...
There was a check in linux.cf for the Linux libc version that didn't
work, since these were never set anywhere. Presumably current Xorg
imake sets these, but since we aren't using that... (yet)
As a result, the build assumed that thread-safe API's were not
supported. Setting the default libc major version to '6' allows the
proper build to take place. libc5 was never threadsafe and no one has
probably used it in over 10 years.
As a result, some earlier porting fixes that referenced '__fds_bits'
on linux systems had to be reverted as these are not valid in an MT
environment. They are also not neccessary when building in such an
environment, as the normal 'fds_bits' works fine.
This patch defintely needs testing on many linux systems.
2014-03-24 17:15:40 -06:00
Ulrich Wilkens
6b0da8f335
Introduction of BSDArchitecture
2013-10-20 16:23:40 -06:00
Marcin Cieslak
71ddf025fa
FreeBSD updates for dtspcd, dtfile and others
...
* Add libraries where necesary
* Point to Freetype2 includes for dtfile
* Define default manpath
2012-08-15 12:41:31 -06:00
Pascal Stumpf
131c7a9e04
Imakefile diffs for OpenBSD.
2012-08-11 19:23:43 -06:00
Jon Trulson
cdf8003f7c
Remove hardcoded CCLINK's in Imakefiles when linking with C++ built libs (DtSvc).
...
Added proper SharedDtSvcReqs in lnxLib.tmpl and CplusplusLibC in
linux.cf. This allows the libstdc++ dependancy to be properly
declared for libDtSvc so that it is not neccessary to hardcode 'CCLINK
= g++' in the Imakefiles of programs linking angainst libDtSvc.
2012-06-19 16:27:20 -06:00
Peter Howkins
1d555edb6c
Convert all Imakefile LinuxDistribution switches to LinuxArchitecture.
...
(programs part1)
2012-05-31 13:40:38 +01:00
Jon Trulson
a2959aa768
dtspcd: fix symlink vulnerability, a couple warnings
2012-05-26 18:57:11 -06:00
Peter Howkins
8631b4f7c0
Link with C++ linker
2012-03-12 12:14:03 +00:00
Peter Howkins
eeb7e285f5
On linux use __fds_bits instead of fds_bits
2012-03-12 12:12:41 +00:00
Peter Howkins
c884521619
Add GNU LGPL headers to all .c .C and .h files
2012-03-10 18:58:32 +00:00
Peter Howkins
83b6996daa
Initial import of the CDE 2.1.30 sources from the Open Group.
2012-03-10 18:21:40 +00:00