oweals/cde.git
12 years agoFix for dtmail execution group error
Adam Robinson [Thu, 9 Aug 2012 03:22:03 +0000 (20:22 -0700)]
Fix for dtmail execution group error

12 years agodtscreen: include stdlib to avoid exit redeclaration
Robert Tomsick [Thu, 9 Aug 2012 03:10:01 +0000 (23:10 -0400)]
dtscreen: include stdlib to avoid exit redeclaration

Signed-off-by: Robert Tomsick <robert@tomsick.net>
12 years agodtscreen: include stdlib where appropriate
Robert Tomsick [Thu, 9 Aug 2012 03:10:02 +0000 (23:10 -0400)]
dtscreen: include stdlib where appropriate

Signed-off-by: Robert Tomsick <robert@tomsick.net>
12 years agodthelpview: Util.c include stdlib to avoid redeclaring exit()
Robert Tomsick [Thu, 9 Aug 2012 02:42:17 +0000 (22:42 -0400)]
dthelpview: Util.c include stdlib to avoid redeclaring exit()

Signed-off-by: Robert Tomsick <robert@tomsick.net>
12 years agodthelpview: Main.c - Cleanup variable init
Robert Tomsick [Thu, 9 Aug 2012 02:42:16 +0000 (22:42 -0400)]
dthelpview: Main.c - Cleanup variable init

Signed-off-by: Robert Tomsick <robert@tomsick.net>
12 years agodtaction: Fix unsafe use of sprintf
Jon Trulson [Thu, 9 Aug 2012 02:17:17 +0000 (20:17 -0600)]
dtaction: Fix unsafe use of sprintf

Patch from Robert Tomsick <robert+cde@tomsick.net>:

I believe this fixes vulnerability #3 from CERT CA-1999-11.[1]  The other
uses of sprintf in DtAction seem to be safe.

[1] https://www.cert.org/advisories/CA-1999-11.html

12 years agodtterm - minor warning fixes
Jon Trulson [Thu, 9 Aug 2012 02:09:40 +0000 (20:09 -0600)]
dtterm - minor warning fixes

Patch by Robert Tomsick <robert+cde@tomsick.net>

12 years agoDtSvc: Fixes a segfault on Debian squeeze 64 bit and most probably other systems...
Jon Trulson [Wed, 8 Aug 2012 18:45:40 +0000 (12:45 -0600)]
DtSvc: Fixes a segfault on Debian squeeze 64 bit and most probably other systems, too.

Patch from Marc Balmer <marc@msys.ch>:

Use strlen, not sizeof, here.  Fixes a segfault on Debian squeeze 64 bit
and most probably other systems, too.

12 years agolibtt: "%wc" is Microsoft extension, not supported in every Std C Library.
Jon Trulson [Wed, 8 Aug 2012 18:35:49 +0000 (12:35 -0600)]
libtt: "%wc" is Microsoft extension, not supported in every Std C Library.

Patch from Douglas Mencken <dougmencken@gmail.com>:

"%wc" is Microsoft extension, not supported in every Std C Library. So
if we don't want to print "%wc%wc%wc%wc%..." instead of real chars, we
shall not use it.

Before:

%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wcession[28326]:
_Tt_s_session::s_init(): 1051 (TT_ERR_INTERNAL)!
%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wcession[28326]: waitpid():
No child processes
%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wc%wcession[28326]: child
ttsession exited with status 1

After:

/usr/dt/bin/ttsession[12397]: _Tt_s_session::s_init(): 1051 (TT_ERR_INTERNAL)!
/usr/dt/bin/ttsession[12397]: waitpid(): No child processes
/usr/dt/bin/ttsession[12397]: child ttsession exited with status 1

12 years agoDtSvc/dtwm: Fix some implicit declarations of functions by adding appropriate
Jon Trulson [Wed, 8 Aug 2012 17:47:18 +0000 (11:47 -0600)]
DtSvc/dtwm: Fix some implicit declarations of functions by adding appropriate

Patch from Frederic Koehler <f.koehler427@gmail.com>:

These implicit definitions cause segfaults on x64 because
the implicit return type is a 32-bit signed int, rather than a pointer
type.

12 years agodtwm: Define a final fallback for loading default window manager font
Jon Trulson [Wed, 8 Aug 2012 17:39:29 +0000 (11:39 -0600)]
dtwm: Define a final fallback for loading default window manager font

Patch from Frederic Koehler <f.koehler427@gmail.com>:

Define a final fallback for loading default window manager font;
before exiting, forcefully try to load "fixed" font. This is sufficient
to allow systems where fontList is set to an empty list to startup dtwm,
for now.

12 years agolibtt: Avoid an infinite loop in ttsession (tooltalk daemon) when /etc/mtab is a...
Jon Trulson [Wed, 8 Aug 2012 17:36:03 +0000 (11:36 -0600)]
libtt: Avoid an infinite loop in ttsession (tooltalk daemon) when /etc/mtab is a symlink, using lstat instead of stat.

Patch from Frederic Koehler <f.koehler427@gmail.com>

12 years agodtlogin: don't try to use /dev/mem to get random data on linux/bsd
Jon Trulson [Wed, 8 Aug 2012 05:22:44 +0000 (23:22 -0600)]
dtlogin: don't try to use /dev/mem to get random data on linux/bsd

dtlogin's genauth routines were trying to open and read /dev/mem on
linux and (presumably) bsd systems in order to obtain random data used
in creating an auth key.

This is bad for a variety of reasons.  Newer linux kernels (at least
on 3.2) issue the following warning to the kernel logs:

"Program dtlogin tried to access /dev/mem between 100000->102000."

Now on linux we will use /dev/urandom, and on CSRG_BASED (bsd) systems
we will use /dev/random to obtain some entropy.

12 years agodtdbcache: remove incorrect comment block and tmpnam_buf var (not used)
Jon Trulson [Tue, 7 Aug 2012 23:43:32 +0000 (17:43 -0600)]
dtdbcache: remove incorrect comment block and tmpnam_buf var (not used)

With Aaron's fixes to dtdbcache fixing a potential coredump, the
comment block in the write_db() function regarding tmpnam() no longer
applies, and the tmpnam_buf variable is no longer used.

So, remove them :)

12 years agodtdbcache: Remove old code in comments
Jon Trulson [Tue, 7 Aug 2012 22:56:11 +0000 (16:56 -0600)]
dtdbcache: Remove old code in comments

Patch from Aaron W. Hsu <arcfide@sacrideo.us>

12 years agodtdbcache: Use mkstemp() instead of tmpnam() to avoid bad interactions
Jon Trulson [Tue, 7 Aug 2012 22:52:26 +0000 (16:52 -0600)]
dtdbcache: Use mkstemp() instead of tmpnam() to avoid bad interactions

Patch from Aaron W. Hsu <arcfide@sacrideo.us>

12 years agoFix SIGSEGV while compiling dthelp on 64 bit systems.
Jon Trulson [Tue, 7 Aug 2012 04:42:34 +0000 (22:42 -0600)]
Fix SIGSEGV while compiling dthelp on 64 bit systems.

Patch from Ulrich Wilkens <mail@uwilkens.de>

I have a little patch for a problem that I found when I tried to
compile dthelp on 64bit FreeBSD. It could also be a problem on other
64bit systems.  The problem is that the program context compiles but
fails running with segmentation fault.

context uses the function m_malloc() which is missing a correct
prototype sometimes. Then it's treated to return int instead of void *
. On 64bit systems this cuts off the higher 32 bits because void * is
64bit whereas int is only 32bit.

12 years agoImake.cf/linux.cf: Add arm support.
Jon Trulson [Tue, 7 Aug 2012 04:38:54 +0000 (22:38 -0600)]
Imake.cf/linux.cf: Add arm support.

Patch from IRC user wschaub.

12 years agodtprintinfo: Fix SIGSEGV in dtprintinfo (passing NULL as first argument to catgets).
Jon Trulson [Mon, 6 Aug 2012 23:12:38 +0000 (17:12 -0600)]
dtprintinfo: Fix SIGSEGV in dtprintinfo (passing NULL as first argument to catgets).

Patch from Douglas Mencken <dougmencken@gmail.com>:

The issue is that MESSAGE tries to invoke catgets with NULL first
parameter, which is dereferenced inside catgets (Std C Library
function) without checking, from catgets.c source:

if (catalog->name_ptr[idx + 0] == (u_int32_t) set
          && catalog->name_ptr[idx + 1] == (u_int32_t) message)

On the other hand, there's a special value: -1 (cast to nl_catd),
which must be used instead of 0 (NULL) in the case when we are unable
to provide real catalog_desc, from catgets.c source:

  /* Be generous if catalog which failed to be open is used.  */
  if (catalog_desc == (nl_catd) -1 || ++set <= 0 || message < 0)
    return (char *) string;

12 years agoEnable PowerPC to be recognized by build.
Jon Trulson [Mon, 6 Aug 2012 23:09:01 +0000 (17:09 -0600)]
Enable PowerPC to be recognized by build.

Patch from Douglas Mencken.

12 years agoAdd Matthew Howkins (dtappbuilder, nsgmls, dtcm Linux compilation) 2.2.0a
Peter Howkins [Sat, 4 Aug 2012 22:16:08 +0000 (23:16 +0100)]
Add Matthew Howkins (dtappbuilder, nsgmls, dtcm Linux compilation)

Also note that other contributors are listed in copyright and copyright.old

12 years agoprograms/Imakefile: don't try to build dtksh or dtinfo under linux.
Jon Trulson [Sat, 4 Aug 2012 05:10:12 +0000 (23:10 -0600)]
programs/Imakefile: don't try to build dtksh or dtinfo under linux.

12 years agodtlogin: Fix up Options->Language menu
Jon Trulson [Fri, 3 Aug 2012 23:38:06 +0000 (17:38 -0600)]
dtlogin: Fix up Options->Language menu

In dtlogin, you can select the language to switch to by selecting it
via Options->Language.  Unfortunately this was also including '.' and
'..', since this list is built dynamically by scanning a directory.

Now we screen out '.' and '..'.

12 years agogitignore: add rest of generated files. git status is much cleaner now :)
Jon Trulson [Fri, 3 Aug 2012 21:57:06 +0000 (15:57 -0600)]
gitignore: add rest of generated files. git status is much cleaner now :)

12 years agodtbuilder: fixup TOG copyrights issue in generated files.
Jon Trulson [Fri, 3 Aug 2012 21:06:56 +0000 (15:06 -0600)]
dtbuilder: fixup TOG copyrights issue in generated files.

The TOG copyrights were being removed after a rebuild, leaving behind
the scary "RESTRICTED" copyright text that was originally there.

The issue was that the TOG copyrights were not properly embedded
within a 'DTB_USER_CODE_START' code block.

dtcodegen does not preserve any code outside DT_USER_CODE START and
END blocks.

Additionally, these objects are built with -merge by dtcodgen, so the
existing 'RESTRICTED' header within the codeblocks was being retained.

12 years agoMerge branch 'master' of https://git.code.sf.net/p/cdesktopenv/code
Peter Howkins [Fri, 3 Aug 2012 16:11:07 +0000 (17:11 +0100)]
Merge branch 'master' of https://git.code.sf.net/p/cdesktopenv/code

12 years agoRe-enable dtappbuilder on linux builds.
Peter Howkins [Fri, 3 Aug 2012 16:10:36 +0000 (17:10 +0100)]
Re-enable dtappbuilder on linux builds.

12 years agolnxLib.tmpl: remove bogus '#define NoMessageCatalog'
Jon Trulson [Fri, 3 Aug 2012 01:16:04 +0000 (19:16 -0600)]
lnxLib.tmpl: remove bogus '#define NoMessageCatalog'

It is amazing what mayhem can be caused by a bad define :)

The reason most of the CDE programs were not actually using their
localized catalogs was because their use was being disabled by this
line.

Certain programs like dtwm and dthelp/libDtHelp did their own
localization handling and did not use the results of this define.
This is why they worked properly, and most everything else did not :)

12 years agolinux.cf: do not bother using X_LOCALE at all. We do not need it on linux.
Jon Trulson [Fri, 3 Aug 2012 01:15:20 +0000 (19:15 -0600)]
linux.cf: do not bother using X_LOCALE at all.  We do not need it on linux.

12 years agolibtt: client init(): use fcntl F_SETFD correctly.
Jon Trulson [Sat, 28 Jul 2012 01:17:14 +0000 (19:17 -0600)]
libtt: client init(): use fcntl F_SETFD correctly.

12 years agoMerge branch 'master' of https://git.code.sf.net/p/cdesktopenv/code
Peter Howkins [Fri, 27 Jul 2012 13:43:33 +0000 (14:43 +0100)]
Merge branch 'master' of https://git.code.sf.net/p/cdesktopenv/code

12 years agoAllow installing the terminfo file for dtterm to also work with path as
Peter Howkins [Fri, 27 Jul 2012 13:39:08 +0000 (14:39 +0100)]
Allow installing the terminfo file for dtterm to also work with path as
/usr/share/terminfo as well as /usr/share/lib/terminfo

This allows fully functioning dtterm on Ubuntu 12.04 on which the terminfo file
failed to install.

12 years agodtwm: add missing workspace 'Occupy" commands to the C, de, es, fr, and it locales.
Jon Trulson [Wed, 25 Jul 2012 03:21:27 +0000 (21:21 -0600)]
dtwm: add missing workspace 'Occupy" commands to the C, de, es, fr, and it locales.

The dtwm DefaultWindowMenu did not list any of the workspace enabled
Occupy commands, which makes it a bit difficult to move windows into a
workspace, or to occupy multiple workspaces.

This was rectified by copying the relevant lines from the
SampleWindowMenu sections containing them that already existed in the
localized files.  Tested on C and DE (German).

12 years agoDtwm.defs.src: set proper mail file path for linux
Jon Trulson [Wed, 25 Jul 2012 02:48:43 +0000 (20:48 -0600)]
Dtwm.defs.src: set proper mail file path for linux

12 years agocopy CONTRIBUTORS file into /usr/dt/ during install
Jon Trulson [Wed, 25 Jul 2012 00:49:11 +0000 (18:49 -0600)]
copy CONTRIBUTORS file into /usr/dt/ during install

12 years agoMerge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code
Jon Trulson [Wed, 25 Jul 2012 00:46:29 +0000 (18:46 -0600)]
Merge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code

12 years agoCDE-MIN: copy the 'COPYING' file to /usr/dt/ on install
Jon Trulson [Wed, 25 Jul 2012 00:15:09 +0000 (18:15 -0600)]
CDE-MIN: copy the 'COPYING' file to /usr/dt/ on install

12 years agolocalized/templates: remove remaining attempts at building dtinfo related catalogs...
Jon Trulson [Tue, 24 Jul 2012 23:53:57 +0000 (17:53 -0600)]
localized/templates: remove remaining attempts at building dtinfo related catalogs and other files

Attempts were still being made to build dtinfo.cat and other related
dtinfo files.  This could cause build failures in
programs/localized/...

12 years agosys.resources.src: make HIGH_COLOR the default
Jon Trulson [Tue, 24 Jul 2012 23:51:29 +0000 (17:51 -0600)]
sys.resources.src: make HIGH_COLOR the default

12 years agoAdd in a CONTRIBUTORS file for all people that have made changes post
Peter Howkins [Tue, 24 Jul 2012 14:23:16 +0000 (15:23 +0100)]
Add in a CONTRIBUTORS file for all people that have made changes post
open-source release. Also update sourceforge url to project website.

12 years agoCommit the template changes for the locales including the missing msg files.
Jon Trulson [Tue, 17 Jul 2012 01:52:36 +0000 (19:52 -0600)]
Commit the template changes for the locales including the missing msg files.

12 years agoAdd missing Mrm, Xm, and Uil .msg files for the various locales from the motif src.
Jon Trulson [Tue, 17 Jul 2012 01:49:28 +0000 (19:49 -0600)]
Add missing Mrm, Xm, and Uil .msg files for the various locales from the motif src.

Re-enable building them in the Imakefiles.

12 years agoMerge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code
Jon Trulson [Mon, 16 Jul 2012 20:26:53 +0000 (14:26 -0600)]
Merge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code

12 years agoIncrement CDE version number to 2.2.0
Peter Howkins [Mon, 16 Jul 2012 14:23:40 +0000 (15:23 +0100)]
Increment CDE version number to 2.2.0

12 years agoinstant: change warning message to fatal message, since it is.
Jon Trulson [Sat, 14 Jul 2012 04:26:02 +0000 (22:26 -0600)]
instant: change warning message to fatal message, since it is.

12 years agoinstant: partially revert commit bc96e6f1ff6c72d4d2cafb6a4088ffa32cd3019f. remove...
Jon Trulson [Sat, 14 Jul 2012 04:15:58 +0000 (22:15 -0600)]
instant: partially revert commit bc96e6f1ff6c72d4d2cafb6a4088ffa32cd3019f. remove 'HACK' :)

instant should fail if the locale xlation db cannot be opened.

The reason this was failing was because the locale translation DB for
linux did not exist (Linux.lcx).  I didn't add it until weeks/months
later :)

There needs to be one for each platform called "$(uname -s).lcx".
FreeBSD will need one too.

12 years agodtmail: IO.C: just compare against \r on all systems
Jon Trulson [Sat, 14 Jul 2012 03:45:46 +0000 (21:45 -0600)]
dtmail: IO.C: just compare against \r on all systems

12 years agoFix some minor issues and re-enable building of DE, ES, FR, and IT locale data (help...
Jon Trulson [Fri, 13 Jul 2012 23:42:12 +0000 (17:42 -0600)]
Fix some minor issues and re-enable building of DE, ES, FR, and IT locale data (help and message cats)

Note, there are still some issues with certain programs appearing not
to use their localized message catalogs properly, while others work
fine.

Also, in order to build these now, you need to make sure you have
installed the DE, ES, FR, and IT locales before building or you will
get failures.  On [k]ubuntu, at least, you can install these with the
following commands:

sudo locale-gen de_DE
sudo locale-gen es_ES
sudo locale-gen fr_FR
sudo locale-gen it_IT

12 years agolibDtHelp: fix up some warnigs and potential overruns
Jon Trulson [Fri, 13 Jul 2012 00:03:54 +0000 (18:03 -0600)]
libDtHelp: fix up some warnigs and potential overruns

12 years agoDtSvc/DtUtil1/Saver.c - fix the screen savers.
Jon Trulson [Thu, 12 Jul 2012 21:14:51 +0000 (15:14 -0600)]
DtSvc/DtUtil1/Saver.c - fix the screen savers.

I have no idea how their putenv code can work.  Anyway, use code that
works on linux now. :)

12 years agodtsession: implement screen lock/unlock for linux
Jon Trulson [Thu, 12 Jul 2012 20:22:59 +0000 (14:22 -0600)]
dtsession: implement screen lock/unlock for linux

In order for this to work, dtsession must be setuid root.  If
dtsession is not setuid root, then locking will be disabled, and a
message will be written to ~/.dt/errorlog with the message: "Unable to
lock display due to security restrictions".

12 years agodtsession: SmUI.c: fix ancient typo
Jon Trulson [Thu, 12 Jul 2012 19:31:54 +0000 (13:31 -0600)]
dtsession: SmUI.c: fix ancient typo

12 years agodtsession: also block HUP and PIPE when preparing to shutdown
Jon Trulson [Thu, 12 Jul 2012 19:13:21 +0000 (13:13 -0600)]
dtsession: also block HUP and PIPE when preparing to shutdown

12 years agodtsession: don't exit while processing your own session exit event.
Jon Trulson [Thu, 12 Jul 2012 19:09:22 +0000 (13:09 -0600)]
dtsession: don't exit while processing your own session exit event.

Setup a global that protects against accidentally exiting
while doing session exit related housekeeping.

12 years ago.gitignore attempt to trim down the number of generated files showing up
Peter Howkins [Thu, 5 Jul 2012 16:18:34 +0000 (17:18 +0100)]
.gitignore attempt to trim down the number of generated files showing up
in git status, work in progress.

12 years agoAs 'copyright' is used by dthello, make sure that it's based on the current
Peter Howkins [Wed, 4 Jul 2012 16:30:04 +0000 (17:30 +0100)]
As 'copyright' is used by dthello, make sure that it's based on the current
LGPL license, and move previous copyright file to copyright.old

12 years agoMerge branch 'linux1'
Peter Howkins [Wed, 4 Jul 2012 15:20:43 +0000 (16:20 +0100)]
Merge branch 'linux1'

12 years agoConverted postscript documentation to pdf, moved to a better place.
Jon Trulson [Wed, 27 Jun 2012 18:21:52 +0000 (12:21 -0600)]
Converted postscript documentation to pdf, moved to a better place.

The new PDF's are located in doc/C/pdf, and the original postscript
files in doc/postscript have been removed.

12 years agofontaliases: add more robust font.aliases file.
Jon Trulson [Fri, 22 Jun 2012 00:30:40 +0000 (18:30 -0600)]
fontaliases: add more robust font.aliases file.

Note, this requires that the xfonts-100dpi and
xfonts-100dpi-transcode[d] packages be installed.  Kubuntu 11.10 calls
the transcoded package 'xfonts-100dpi-transcoded' while 12.04 calls it
'xfonts-100dpi-transcode'

You can also use the 75dpi variants if you wish, though they will look
crappy on larger monitors (>1024x768).

12 years agodtlogin|Xsession/config: setup some env variables and fontpath for linux (and CSRG...
Jon Trulson [Thu, 21 Jun 2012 23:55:57 +0000 (17:55 -0600)]
dtlogin|Xsession/config: setup some env variables and fontpath for linux (and CSRG) systems.

What we really need are more fonts installed, like all of the xf 75dpi
and 100dpi fonts.  100dpi looks much better than 75/72 dpi, especially
on any display larger than 1024x768.  Of course, in the far future, we
should use the anti-aliased TT fonts everyone else uses these days
anyway.

12 years agofonts.alias: use Peters version in the CDE wiki for now.
Jon Trulson [Thu, 21 Jun 2012 23:30:56 +0000 (17:30 -0600)]
fonts.alias: use Peters version in the CDE wiki for now.

12 years agoAdd fontaliases/linux/ dir, and appropriate entries in the CDE-FONT.udb database.
Jon Trulson [Thu, 21 Jun 2012 23:07:21 +0000 (17:07 -0600)]
Add fontaliases/linux/ dir, and appropriate entries in the CDE-FONT.udb database.

Note, these still aren't quie working yet.  Notably, font.dir needs to
be generated properly and re-committed so they will be used.
mkfontdir is used to do this, but currently it fails on these
font.alias files (does not recognize them).

12 years agoXsession.src: setup proper cpp_* defines for linux
Jon Trulson [Thu, 21 Jun 2012 23:05:37 +0000 (17:05 -0600)]
Xsession.src: setup proper cpp_* defines for linux

12 years agodtfile: add freetype includes to Imakfile
Jon Trulson [Wed, 20 Jun 2012 20:25:41 +0000 (14:25 -0600)]
dtfile: add freetype includes to Imakfile

While removing the CCLINK options, accidentally removed freetype
includes, causing dtfile to fail to build.

12 years agoFix dtsession_res so certain config/xrdb options will work properly.
Jon Trulson [Wed, 20 Jun 2012 07:37:05 +0000 (01:37 -0600)]
Fix dtsession_res so certain config/xrdb options will work properly.

12 years agoinstant: fix infinite loop seen in non-C locales
Jon Trulson [Wed, 20 Jun 2012 02:02:56 +0000 (20:02 -0600)]
instant: fix infinite loop seen in non-C locales

12 years agoAdd older CDE documentation in .ps format until newer documentation can be generated...
Jon Trulson [Wed, 20 Jun 2012 01:37:36 +0000 (19:37 -0600)]
Add older CDE documentation in .ps format until newer documentation can be generated with dtinfo.

12 years agoRemove dtinfo launcher and icons from the default front panel.
Jon Trulson [Wed, 20 Jun 2012 01:22:08 +0000 (19:22 -0600)]
Remove dtinfo launcher and icons from the default front panel.

Use the help system instead.  Someday, if dtinfo can be made to work,
this can be undone easily.  Note, you may have to clear out your ~/.dt
dir to see the change.

12 years agodbtoman: use ksh rather than sh. With working nsgmls, now we can build man pages.
Jon Trulson [Wed, 20 Jun 2012 00:22:38 +0000 (18:22 -0600)]
dbtoman: use ksh rather than sh.  With working nsgmls, now we can build man pages.

Under ubuntu at least, /bin/sh is really /bin/dash.  For some reason,
dash cannot detect an executable (-x) file if it resides on nfs.  bash
and ksh do not have this problem.  Since ksh is already required to
build and install major portions of CDE, might as well use it here too.

12 years agonsgmls: Imakefile fixes so it will build
Jon Trulson [Wed, 20 Jun 2012 00:04:53 +0000 (18:04 -0600)]
nsgmls: Imakefile fixes so it will build

12 years agoagent.c: oops - include poll.h, not sys/poll.h
Jon Trulson [Tue, 19 Jun 2012 23:31:28 +0000 (17:31 -0600)]
agent.c: oops - include poll.h, not sys/poll.h

12 years agoRemove OS deps from tclPosixStr.c (EOPNOTSUPP/ENOTSUP errnos)
Jon Trulson [Tue, 19 Jun 2012 23:18:00 +0000 (17:18 -0600)]
Remove OS deps from tclPosixStr.c (EOPNOTSUPP/ENOTSUP errnos)

12 years agocsa/agent.c: use select rather than poll
Jon Trulson [Tue, 19 Jun 2012 22:51:25 +0000 (16:51 -0600)]
csa/agent.c: use select rather than poll

12 years agoRemove hardcoded CCLINK's in Imakefiles when linking with C++ built libs (DtSvc).
Jon Trulson [Tue, 19 Jun 2012 22:27:20 +0000 (16:27 -0600)]
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.

12 years agodoc/help localization changes
Jon Trulson [Tue, 19 Jun 2012 04:01:02 +0000 (22:01 -0600)]
doc/help localization changes

- by default, do not build any other locale than C for now
- do not try to build the guides.  These require functioning
  dtinfo/docbook
- add a Linux.lcx locale translation db.  Not used yet.
- fix some overflows in dtdocbook/instant

12 years agoimake/config changes to support more processors, including AMD64 (x86_64)
Jon Trulson [Tue, 19 Jun 2012 01:50:44 +0000 (19:50 -0600)]
imake/config changes to support more processors, including AMD64 (x86_64)

- also some rework of linux.cf
  - only allow ELF systems
  - use -pipe
  - add some more defines
  - get rid of some of the ancient (libc5/linux 1) support.  Really,
    don't expect CDE to build right on such old systems.

12 years ago.gitignore: add some more db related exclusions
Jon Trulson [Tue, 19 Jun 2012 01:50:30 +0000 (19:50 -0600)]
.gitignore: add some more db related exclusions

12 years agodatabases/installCDE - fixup a variety of issues.
Jon Trulson [Tue, 19 Jun 2012 00:24:07 +0000 (18:24 -0600)]
databases/installCDE - fixup a variety of issues.

- databases need linux specific entries for CDE-SHLIBS
- database Imakefile should undef the platform define (linux)
- installCDE fixes
  - use $LOGFILE.  There are still cases where tmp files are created
    in /tmp.
  - detect and set proper PLATFORM
  - Check to see if a db exists before trying to use it
  - don't print usage if you aren't root.

12 years agolinux.cf: remove ServerOSDefines and ServerExtraDefines
Jon Trulson [Tue, 19 Jun 2012 00:23:39 +0000 (18:23 -0600)]
linux.cf: remove ServerOSDefines and ServerExtraDefines

12 years agogitignore: add some entries for admin/IntegTools and Makefiles
Jon Trulson [Tue, 19 Jun 2012 00:22:42 +0000 (18:22 -0600)]
gitignore: add some entries for admin/IntegTools and Makefiles

12 years agoAdd -fpermissive to linux standard c++ option define in linux.cf
Jon Trulson [Mon, 18 Jun 2012 22:27:25 +0000 (16:27 -0600)]
Add -fpermissive to linux standard c++ option define in linux.cf

Remove from individual Imakefiles.

Also, remove '#if 0' block in linux.cf, and remove empty
LinuxMachineDefines. This should be working correctly.  If not, let me
know.

12 years agodtterm: fixes so job control will work.
Jon Trulson [Mon, 18 Jun 2012 22:01:17 +0000 (16:01 -0600)]
dtterm: fixes so job control will work.

12 years agodtterm: disable svr4 streams semantics on linux
Jon Trulson [Mon, 18 Jun 2012 21:32:02 +0000 (15:32 -0600)]
dtterm: disable svr4 streams semantics on linux

12 years agoImport of the files from Motif 2.1.30 release that are needed to build CDE
Peter Howkins [Fri, 15 Jun 2012 14:58:42 +0000 (15:58 +0100)]
Import of the files from Motif 2.1.30 release that are needed to build CDE
man pages.

12 years agoconvert all Imakefile LinuxDistribution to LinuxArchitecture.
Peter Howkins [Thu, 31 May 2012 12:47:41 +0000 (13:47 +0100)]
convert all Imakefile LinuxDistribution to LinuxArchitecture.
(programs part 2)

12 years agoConvert all Imakefile LinuxDistribution switches to LinuxArchitecture.
Peter Howkins [Thu, 31 May 2012 12:40:38 +0000 (13:40 +0100)]
Convert all Imakefile LinuxDistribution switches to LinuxArchitecture.
(programs part1)

12 years agoModify all Imakefile files to use LinuxArchitecture instead of LinuxDistribution
Peter Howkins [Thu, 31 May 2012 11:41:33 +0000 (12:41 +0100)]
Modify all Imakefile files to use LinuxArchitecture instead of LinuxDistribution
for Linux specific changes. (lib directory)

12 years agoAddition of LGPL file at top level, deprecation of file copyright, and
Peter Howkins [Tue, 29 May 2012 15:54:57 +0000 (16:54 +0100)]
Addition of LGPL file at top level, deprecation of file copyright, and
modify the user facing copying help text to be LGPL.

12 years agoRevert previous erroneous change made on master that had already been
Peter Howkins [Tue, 29 May 2012 15:42:30 +0000 (16:42 +0100)]
Revert previous erroneous change made on master that had already been
done on linux1.

12 years agodisable building of dtappbuilder until building right
Jon Trulson [Sun, 27 May 2012 03:06:06 +0000 (21:06 -0600)]
disable building of dtappbuilder until building right

12 years agodtsession: fix VU#497553
Jon Trulson [Sun, 27 May 2012 01:29:50 +0000 (19:29 -0600)]
dtsession: fix VU#497553

12 years agoDtSvc/dtspcd: fixes for VU#172583
Jon Trulson [Sun, 27 May 2012 01:09:33 +0000 (19:09 -0600)]
DtSvc/dtspcd: fixes for VU#172583

12 years agodtspcd: fix symlink vulnerability, a couple warnings
Jon Trulson [Sun, 27 May 2012 00:57:11 +0000 (18:57 -0600)]
dtspcd: fix symlink vulnerability, a couple warnings

12 years agott_isam_record.C/tt_isam_record.C: fix CERT VU#387387 part 3
Jon Trulson [Sun, 27 May 2012 00:39:51 +0000 (18:39 -0600)]
tt_isam_record.C/tt_isam_record.C: fix CERT VU#387387 part 3

12 years agott_isam_record.C: fix CERT VU#387387 part 2
Jon Trulson [Sun, 27 May 2012 00:29:26 +0000 (18:29 -0600)]
tt_isam_record.C: fix CERT VU#387387 part 2

12 years agott_isam_record.C: fix CERT VU#387387
Jon Trulson [Sun, 27 May 2012 00:28:02 +0000 (18:28 -0600)]
tt_isam_record.C: fix CERT VU#387387

12 years agodm_server.C: fix CERT VU#975403/VU#299816
Jon Trulson [Sun, 27 May 2012 00:24:31 +0000 (18:24 -0600)]
dm_server.C: fix CERT VU#975403/VU#299816

12 years agoFileUtils.c: fix CERT VU#575804
Jon Trulson [Sun, 27 May 2012 00:14:58 +0000 (18:14 -0600)]
FileUtils.c: fix CERT VU#575804

12 years agolinux has supported shadow passwords forever...
Jon Trulson [Sat, 26 May 2012 23:57:11 +0000 (17:57 -0600)]
linux has supported shadow passwords forever...

12 years agoSeveral adjustments to installCDE.src:
Jon Trulson [Sat, 26 May 2012 23:30:53 +0000 (17:30 -0600)]
Several adjustments to installCDE.src:

 Do not require the user to be root

 Use -e in echo statments so that embedded \t's etc will display.

 Do not save install log in /tmp with a known name, especially since
 it is supposed to be run as root.  This is a Bad Thing To Do (tm).
 Instead just save the log in the current dir.