Commit Graph

2447 Commits (75d79e0e3c36a694b48bf341ac50cb860d82cf42)
 

Author SHA1 Message Date
jsorg71 75d79e0e3c Merge pull request #353 from nerdknight/devel
Fix compile error "format not a string literal and no format arguments [-Werror=format-security]"
9 years ago
NerdKnight 99ebe1340f Fix compile error "format not a string literal and no format arguments [-Werror=format-security]" 9 years ago
jsorg71 034ee36f9c Merge pull request #341 from proski/sanity-checks
Sanity checks
9 years ago
Itamar Reis Peixoto 6b3fc5a373 Merge pull request #347 from metalefty/typo
fix typo xrdp-sessman -> xrdp-sessvc
9 years ago
Jay Sorg a6cba63a89 fix a warning 9 years ago
Jay Sorg 689ffe79d9 fix warnings, move some calls to os_calls 9 years ago
Koichiro IWAO ff4ec98412 fix typo xrdp-sessman -> xrdp-sessvc 9 years ago
Jay Sorg 38241f2a0b Fix all format warnings and some unused variable warnings 9 years ago
Jay Sorg 7393579205 Don't attempt to intercept SIGKILL, it doesn't work on any OS 9 years ago
Pavel Roskin 9091c3eef2 Annotate printf-like functions if supported by the compiler
Both GCC and Clang support it. Add a macro from Autoconf archive to check
for format attribute support.
9 years ago
Pavel Roskin 4da6f8a538 Enable -Wall flag for compilers that support it
Add Autoconf archive macros to check for -Wall and its dependencies.
Adjust m4/.gitignore to only ignore libtool macros.

Require Autoconf 2.65 for compatibility with Autoconf archive macros.
9 years ago
Pavel Roskin e0a9c769e0 Be more specific in error messages about PID file location 9 years ago
Pavel Roskin 3eb495f425 Check if rsakeys.ini exists on startup, exit if it's missing 9 years ago
Pavel Roskin 86ec50789c Move all sanity checks to a separate function xrdp_sanity_check() 9 years ago
Jay Sorg cdb967c0f3 xorgxrdp=a0add6c 9 years ago
Jay Sorg 5af0d06d1e keygen: default 2048 bit RSA key 9 years ago
Itamar Reis Peixoto cfbb00c6cb Merge pull request #333 from proski/key-install
Key install (generate rsakeys.ini during make install)
9 years ago
jsorg71 f53b3bb737 Merge pull request #326 from metalefty/pulseaudio-6.0
pulse: fix build pulseaudio 6.0 or higher
9 years ago
Pavel Roskin b63575cebc Create and install rsakeys.ini
Use install-data-hook to ensure restrictive permissions on rsakeys.ini.

Don't create rsakeys.ini in init scripts. This makes xrdp functional upon
"make install" without relying on the init scripts.

Packagers should not package rsakeys.ini, it should be created when the
package is installed.
9 years ago
Pavel Roskin 22e6f3e2f7 Use SCRIPTS for executable scripts, don't use "chmod 755" 9 years ago
Pavel Roskin 7642675ddf Use "dist_" prefix to minimize use of EXTRA_DIST
"dist" is ignored in presense of "noinst", so keep noinst_man_MANS.
9 years ago
Jay Sorg f100036cd9 common: minor fix for older openssl keygen 9 years ago
Jay Sorg 3bc9f1e275 Merge branch 'devel' of git:neutrinolabs/xrdp into devel 9 years ago
Jay Sorg 0d192aee62 common: fix for key generated smaller than asked for 9 years ago
Itamar Reis Peixoto f1dd912218 Merge pull request #330 from proski/automake
More makefile cleanup
9 years ago
Pavel Roskin 59a5fb0ddb Move headers from EXTRA_DIST to sources, sort alphabetically
There should be no functional difference.
9 years ago
Pavel Roskin 3ad28e1130 Add m4 directory to EXTRA_DIST, not all Automake versions package it 9 years ago
Koichiro IWAO 93f7bcb71b pulse: fix build pulseaudio 6.0 or higher
Discovered in #321.  The number of argument for pa_rtpoll_run have
been changed since 6.0.

>=6.0 : int pa_rtpoll_run(pa_rtpoll *f);
<6.0  : int pa_rtpoll_run(pa_rtpoll *f, bool wait);

Check pulseaudio version by PA_CHECK_VERSION macro introduced since
pulseaudio 0.9.16.  In case PA_CHECK_VERSION is not defined,
pa_rtpoll_run takes 2 arguments.
9 years ago
Itamar Reis Peixoto 3934be9320 Merge pull request #320 from proski/sesadmin
Make sesadmin useful, another round of typo hunting
9 years ago
Pavel Roskin 50cbf01044 xrdp-sesadmin: show help and exit if mandatory arguments are not given
Don't mark password as mandatory, it's asked if not provided on the
command line.
9 years ago
Pavel Roskin 92a6833e9b Fix typos 9 years ago
Pavel Roskin afa6ec97cc Install the most appropriate PAM settings file
Installing a file referring to common-auth is of no use if that file
doesn't exit.

Don't use "password" entry, xrdp doesn't ever change user password.
9 years ago
Pavel Roskin fe055e989a Fix connection month display in xrdp-sesadmin
tm_mon in `struct tm` uses 0 for January.

`struct session_data` and `struct SCP_DISCONNECTED_SESSION` don't specify
how dates are stored. But considering the code in sestest and sesadmin,
all date components are stored as displayed.
9 years ago
Pavel Roskin 81779ddb01 Use lowercase program names for syslog
Other programs typically use the same case as their execulables.
9 years ago
Itamar Reis Peixoto 4ebc97ef39 Merge pull request #317 from proski/coding_style
Convert coding style from Open Document to Markdown
9 years ago
Itamar Reis Peixoto 371ad8d90d Merge pull request #319 from proski/misc
Miscellaneous minor patches, mostly for the build system
9 years ago
Pavel Roskin dcab7552db Stop redefining libdir, use moduledir for ${libdir}/xrdp
libdir is for shared and static libraries. Some xrdp libraries are loaded
dynamically from a non-standard directory, so they are used like modules.

Having separate libdir and moduledir would eventually allow to separate
dynamically loaded modules from shared libraries.
9 years ago
Pavel Roskin ffc4efb9ce Don't ignore files known to git
That can cause unexpected behavior, especially with third party tools.
The ignored files will be lost if the source tree is re-imported to
another git repository, unless special care is taken.

Whitelist all non-generated makefiles.

To whitelist instfiles/pam.d/xrdp-sesman, add path to all generated
executables listed in the top-level .gitignore, sort .gitignore
alphabetically.

Add mkinstalldir, it's used by Automake on some systems.
9 years ago
Pavel Roskin 9a1dea8e50 Fix sloppy formatting in instfiles/Makefile.am
Use spaces around = and +=, indent by 2 spaces.
9 years ago
Pavel Roskin 0e75e13b42 Automake 1.7.2 is the oldest version working with xrdp
Automake 1.6.x cannot deal with conditional EXTRA_LIBS. Automake 1.7 and
1.7.1 cannot deal with line continuation in SUBDIRS.

It is important to have correct requirements to know what Automake
features can be used.
9 years ago
Pavel Roskin 04fc814efd Use silent rules by default if supported by Automake
Silent rules make warnings stand out, so they are fixed early.
9 years ago
Pavel Roskin 22e808a186 Add missing spaces in the strings that are split for line wrapping 9 years ago
Pavel Roskin 09709d3ced xcon: include unistd.h, it's needed for select() on MacOS 9 years ago
Pavel Roskin 85840863da startwm.sh: make sure sourced scripts are readable
Strictly speaking, both existence and readability should be checked.
However, chances of ~/.profile being a directory or a FIFO are very small
compared to its chances of being non-readable due to some
misconfiguration.

Put "if" and "then" on the same line for consistency with other checks.
Improve comment and pseudocode formatting.
9 years ago
Jay Sorg ac901fd283 sesman: add missing break 9 years ago
Pavel Roskin c4127aa43f Convert coding style from Open Document to Markdown
Markdown is easily readable in text editors. Unlike ODT, markdown can be
patched. GitHub shows markdown with pretty formatting.

Remove bad examples. Improve explanations for good examples.

Use Unicode finger sign to work around the issue of code block after a
list.

Make coding_style.md distributable.
9 years ago
Itamar Reis Peixoto 09a69fbec2 remove duplicated call to scp_session_set_bpp 9 years ago
Itamar Reis Peixoto 70920b836e Merge pull request #316 from proski/32bpp
Make it possible to use Xvnc with 32 bpp
9 years ago
Pavel Roskin a91a285734 vnc: enable 32 bpp support for Xvnc, it actually works 9 years ago
Pavel Roskin a61349c1d3 Allow sessions with 32 bpp 9 years ago