Part 1 of 2 of kdm rename

pull/1/head
Timothy Pearson 13 years ago
parent 9f97121b38
commit fa36c3f25d

@ -329,7 +329,7 @@ announcements?
<para>
Because this would be security hole, with the current user
detection. You can bypass the limitation by adding two lines in
<command>xdm</command> config files (which are the same as &kdm; ones).
<command>xdm</command> config files (which are the same as &tdm; ones).
</para>
<note>
@ -375,10 +375,10 @@ DisplayManager._0.reset: /etc/X11/xdm/Xreset </screen>
</procedure>
<para>
This will make &kdm; (or <command>xdm</command>) log
This will make &tdm; (or <command>xdm</command>) log
the user into utmp, which is the right thing to do. It's not up to
&konsole;, nor <command>xterm</command>, to log the user, but to
<command>xdm</command> and &kdm;, in my
<command>xdm</command> and &tdm;, in my
opinion. However, this will not log the user as an X user when using
<command>startx</command>... Any hint about that ?
</para>
@ -404,7 +404,7 @@ If you're running &Linux; 2.0.35, this is a known bug in the kernel,
which doesn't let <systemitem class="username">root</systemitem> read
<filename class="directory">/proc</filename>. The solution is the same
as in the previous question, provided that you run
&kdm; or <command>xdm</command> to log into X. Or
&tdm; or <command>xdm</command> to log into X. Or
upgrade!
</para>
@ -413,7 +413,7 @@ Otherwise, this is normal. &ktalkd; can't find the user, as &kde;
doesn't log him into utmp and the &Linux; based (<filename
class="directory">/proc</filename>) detection is disabled. The solution
is the same as in the previous question, provided that you run
<acronym>kdm</acronym> or <acronym>xdm</acronym> to log into X. Another
<acronym>tdm</acronym> or <acronym>xdm</acronym> to log into X. Another
solution is to make sure you always have an
<application>xterm</application> running.
</para>

@ -311,7 +311,7 @@ void KcmSambaConf::initAdvancedTab()
icon = SmallIcon("fileprint");
else
if (label == i18n("Logon"))
icon = SmallIcon("kdmconfig");
icon = SmallIcon("tdmconfig");
else
if (label == i18n("Protocol"))
icon = SmallIcon("core");

@ -301,7 +301,7 @@ void ShareDlgImpl::initAdvancedTab()
icon = SmallIcon("lock");
else
if (label.lower() == "logon")
icon = SmallIcon("kdmconfig");
icon = SmallIcon("tdmconfig");
else
if (label.lower() == "protocol")
icon = SmallIcon("core");

@ -8,8 +8,8 @@ if test -n "`echo $target_os | grep linux`" ; then
if test -d /proc; then
AC_DEFINE(PROC_FIND_USER, 1, [/proc exists])
## Sufficient if all xdm and kdm would call sessreg to log the user into utmp
AC_DEFINE(UTMP_AND_PROC_FIND_USER, 1, [kdm/xmd log user])
## Sufficient if all xdm and tdm would call sessreg to log the user into utmp
AC_DEFINE(UTMP_AND_PROC_FIND_USER, 1, [tdm/xmd log user])
## Waiting for this, here is complement, looking for DISPLAY set in any process
## in /proc that the user owns

@ -72,7 +72,7 @@
#endif
#endif
#define ktalkdmax(a,b) ( (a) > (b) ? (a) : (b) )
#define ktaltdmax(a,b) ( (a) > (b) ? (a) : (b) )
#define N_LINES 5
/*
@ -383,17 +383,17 @@ void print_mesg(FILE * tf, NEW_CTL_MSG * request, const char *
localclock = localtime( (const time_t *) &clock.tv_sec );
(void)snprintf(line_buf[i], N_CHARS, " ");
sizes[i] = strlen(line_buf[i]);
max_size = ktalkdmax(max_size, sizes[i]);
max_size = ktaltdmax(max_size, sizes[i]);
i++;
(void)snprintf(line_buf[i], N_CHARS, Options.announce1,
localclock->tm_hour , localclock->tm_min );
sizes[i] = strlen(line_buf[i]);
max_size = ktalkdmax(max_size, sizes[i]);
max_size = ktaltdmax(max_size, sizes[i]);
i++;
snprintf(buffer, N_CHARS, "%s@%s", request->l_name, remotename);
snprintf(line_buf[i], N_CHARS, Options.announce2, buffer);
sizes[i] = strlen(line_buf[i]);
max_size = ktalkdmax(max_size, sizes[i]);
max_size = ktaltdmax(max_size, sizes[i]);
i++;
if (!(strcmp(localname,remotename))) {
@ -403,12 +403,12 @@ void print_mesg(FILE * tf, NEW_CTL_MSG * request, const char *
}
sizes[i] = strlen(line_buf[i]);
max_size = ktalkdmax(max_size, sizes[i]);
max_size = ktaltdmax(max_size, sizes[i]);
i++;
(void)snprintf(line_buf[i], N_CHARS, " ");
sizes[i] = strlen(line_buf[i]);
sizes[i] = strlen(line_buf[i]);
max_size = ktalkdmax(max_size, sizes[i]);
max_size = ktaltdmax(max_size, sizes[i]);
i++;
bptr = big_buf;
if (!force_no_sound) /* set if a X announce has been done */

@ -99,7 +99,7 @@ char *get_display(pid_t pid) {
return dpy;
}
/* As utmp isn't reliable (neither xdm nor kdm logs into it ! :( ),
/* As utmp isn't reliable (neither xdm nor tdm logs into it ! :( ),
we have to look at processes directly. /proc helps a lot, under linux.
How to do it under other unixes ? */
#ifdef ALL_PROCESSES_AND_PROC_FIND_USER

Loading…
Cancel
Save