Compare commits
11 commits
1.5
...
for-divege
Author | SHA1 | Date | |
---|---|---|---|
![]() |
812394b9df | ||
![]() |
ef953698c5 | ||
![]() |
6ff7b56a42 | ||
![]() |
cde92985ae | ||
![]() |
af2d3b48c6 | ||
![]() |
4f37273c60 | ||
![]() |
957c5aefad | ||
![]() |
ff3a5d11a1 | ||
![]() |
73dd70fdf8 | ||
![]() |
119d66d4c1 | ||
![]() |
f8a3bc0509 |
10 changed files with 36 additions and 14 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
timeoutd
|
||||
*.o
|
4
Makefile
4
Makefile
|
@ -1,8 +1,8 @@
|
|||
CFLAGS=-fomit-frame-pointer -O2 -s -g -Wall
|
||||
CFLAGS=-fomit-frame-pointer -O2 -s -g -Wall -Wno-unused-result
|
||||
timeoutd: timeoutd.c Makefile
|
||||
#$(CC) $(CFLAGS) -o timeoutd timeoutd.c
|
||||
$(CC) $(CFLAGS) -o timeoutd.o -c timeoutd.c -DTIMEOUTDX11
|
||||
$(CC) $(CFLAGS) -o timeoutd -L/usr/X11R6/lib timeoutd.o -lXss -lXext
|
||||
$(CC) $(CFLAGS) -o timeoutd -L/usr/X11R6/lib timeoutd.o -lXss -lXext -lX11
|
||||
|
||||
|
||||
install:
|
||||
|
|
7
debian/.gitignore
vendored
Normal file
7
debian/.gitignore
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
files
|
||||
timeoutd.debhelper.log
|
||||
timeoutd.postinst.debhelper
|
||||
timeoutd.postrm.debhelper
|
||||
timeoutd.prerm.debhelper
|
||||
timeoutd.substvars
|
||||
timeoutd
|
14
debian/changelog
vendored
14
debian/changelog
vendored
|
@ -1,11 +1,11 @@
|
|||
timeoutd (1.5-10.1ubuntu1~1.gbp45a983) UNRELEASED; urgency=low
|
||||
timeoutd (1.5-10.2) unstable; urgency=low
|
||||
* Non-maintainer upload
|
||||
* Resolve the missing symbol XOpenDisplay by linking with libX11
|
||||
* Update debian/control Standards-Version: 3.9.5
|
||||
* Ignore files generated by building debian package
|
||||
* Update debian/compat to version 5
|
||||
|
||||
** SNAPSHOT build @45a9836343ec6efa904b51360713c52fb623d6d8 **
|
||||
|
||||
* UNRELEASED
|
||||
* Fixed local X session handling
|
||||
|
||||
-- Shawn Willden <shawn@kahlan.willden.org> Sun, 04 Jan 2009 23:17:57 -0700
|
||||
-- Clark Rawlins <clark@bit63.org> Sun, 14 Dec 2014 09:28:59 -0800
|
||||
|
||||
timeoutd (1.5-10.1) unstable; urgency=low
|
||||
|
||||
|
|
2
debian/compat
vendored
2
debian/compat
vendored
|
@ -1 +1 @@
|
|||
4
|
||||
5
|
||||
|
|
4
debian/control
vendored
4
debian/control
vendored
|
@ -2,12 +2,12 @@ Source: timeoutd
|
|||
Section: admin
|
||||
Priority: extra
|
||||
Maintainer: Dennis Stampfer <seppy@debian.org>
|
||||
Standards-Version: 3.6.2
|
||||
Standards-Version: 3.9.5
|
||||
Build-Depends: debhelper (>= 4), libx11-dev, libxss-dev
|
||||
|
||||
Package: timeoutd
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Conflicts: suidmanager (<< 0.50)
|
||||
Description: Flexible user timeout daemon with X11 support
|
||||
timeoutd enforces the time restrictions specified for each or all users.
|
||||
|
|
5
debian/rules
vendored
5
debian/rules
vendored
|
@ -4,6 +4,9 @@
|
|||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
build-arch: build
|
||||
|
||||
build-indep: build
|
||||
|
||||
build:
|
||||
$(MAKE) timeoutd
|
||||
|
@ -20,7 +23,7 @@ clean:
|
|||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_prep
|
||||
dh_installdirs
|
||||
|
||||
# Add here commands to install the package into debian/<packagename>
|
||||
|
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
3.0 (git)
|
2
debian/timeoutd.init.d
vendored
2
debian/timeoutd.init.d
vendored
|
@ -16,6 +16,8 @@ DESC="user timeout daemon"
|
|||
|
||||
test -x $DAEMON || exit 0
|
||||
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
|
|
|
@ -398,6 +398,7 @@ void read_wtmp()
|
|||
FILE *fp;
|
||||
struct utmp ut;
|
||||
struct tm *tm;
|
||||
time_t time;
|
||||
|
||||
#ifdef DEBUG
|
||||
openlog("timeoutd", OPENLOG_FLAGS, LOG_DAEMON);
|
||||
|
@ -418,7 +419,13 @@ void read_wtmp()
|
|||
|
||||
while (fread(&ut, sizeof(struct utmp), 1, fp) == 1)
|
||||
{
|
||||
tm = localtime(&ut.ut_time);
|
||||
/* On 64 bit systems time_t is a 64 bit integer
|
||||
while ut_time is a 32 bit (unsigned) integer.
|
||||
Copy the value to a time_t value so the pointer
|
||||
types agree in the call to localtime.
|
||||
*/
|
||||
time = ut.ut_time;
|
||||
tm = localtime(&time);
|
||||
|
||||
if (tm->tm_year != now.tm_year || tm->tm_yday != now.tm_yday)
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue