Displaying 10 results from an estimated 10 matches for "cp0".
Did you mean:
c0
2012 Mar 06
1
Invalid user name: function okname() in scp.c
Hi OpenSSH developers
In the source file *scp.c* there is a function called *okname(char
*cp0)* that validates the entered username by using the scp command as
follows:
*
*[ Fragment scp.c start ]
...
int okname(char *cp0)
{
int c;
char *cp;
cp = cp0;
do {
c = (int)*cp;
if (c & 0200)
goto bad;
if (!isalpha(c) && !isd...
2001 Feb 08
1
username check in scp
...= argv[i];
if (*suser == '\0')
suser = pwd->pw_name;
- else if (!okname(suser))
- continue;
}
host = cleanhostname(host);
len = strlen(src) + CMDNEEDS + 20;
@@ -1017,28 +1010,6 @@
}
run_err("%s: %s", cp, strerror(errno));
exit(1);
-}
-
-int
-okname(cp0)
- char *cp0;
-{
- int c;
- char *cp;
-
- cp = cp0;
- do {
- c = *cp;
- if (c & 0200)
- goto bad;
- if (!isalpha(c) && !isdigit(c) &&
- c != '_' && c != '-' && c != '.' && c != '+')
- goto bad;
- } while (*++cp)...
2002 Apr 12
1
scp.c::okname() problem
...sh or sftp.
Thanks,
-- Mark
Index: scp.c
===================================================================
RCS file: /cvs/openssh/scp.c,v
retrieving revision 1.94
diff -u -p -r1.94 scp.c
--- scp.c 6 Apr 2002 18:30:00 -0000 1.94
+++ scp.c 12 Apr 2002 02:13:22 -0000
@@ -1016,7 +1016,7 @@ okname(cp0)
if (c & 0200)
goto bad;
if (!isalpha(c) && !isdigit(c) &&
- c != '_' && c != '-' && c != '.' && c != '+')
+ c != '_' && c != '-' && c != '.' && c != '...
2007 Jan 23
1
login problem with domain users
Hi all,
I am using samba 3.0.23d on my linux machine.
This machine is connected in a domain where all other users are using
domain username and password to login.
but with this username and password they are unable to login in samba.
my smb.conf file is like following,
[global]
workgroup = BSIL
server string = Samba testing
encrypt passwords = yes
os level = 20
2006 Apr 26
0
[ANNOUNCE] libXi 1.0.1
Reindent with -bad -bap -c0 -cd0 -cp0 -ncdb -ci4 -cli0 -ncs -d0 -di4
-i4 -ip4 -l80 -npcs -psl -sob -ss -ce -sc -br -cdw -lp -cbi0.
Bug #6286: Fix build on Cygwin. (Yaakov Selkowitz)
Bug #5628 <https://bugs.freedesktop.org/show_bug.cgi?id=5628>
Shadow pages not created correctly when MANDIR & MANSUFFIX don't match.
CVS...
2013 Apr 26
2
[LLVMdev] LLVM3.2 Backend for mips1 subtarget
My guess is he wants mips1 so that he doesn't have to worry about the
patented mips instructions?
At any rate, it will be a bit of work to enable a mips1 target and I
doubt many people are interested, so it'll definitely be up to him to
do the work.
-eric
On Fri, Apr 26, 2013 at 10:15 AM, Reed Kotler <rkotler at mips.com> wrote:
> If you want to create a version for the mips1
2000 Sep 12
0
OpenSSH 2.2.0p1 port to QNX 4
...if (dp->d_ino == 0)
+ #endif /* !__QNX__ || __QNXNTO__ */
continue;
if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, ".."))
continue;
***************
*** 1050,1055 ****
--- 1054,1064 ----
bad: fprintf(stderr, "%s: invalid user name\n", cp0);
return (0);
}
+
+
+ #if defined(__QNX__) && !defined(__QNXNTO__)
+ #define st_blksize st_size /* other naming under QNX */
+ #endif /* __QNX__ && !__QNX_NTO__ */
BUF *
allocbuf(bp, fd, blksize)
diff -cr openssh-2.2.0p1.orig/session.c openssh-2.2.0p1.qnx/session.c
**...
2002 Jul 10
0
*****SPAM***** ATTENTION! Well-Paid Job in the Internet!
...M0xhdGT4BaYw9qJTmCQVxl99
gSmMv+gURjmFn73IFCZedArDmMLw8MgLTGHyB07hndw8bqZ2wAt4miHDU6MnIEL7V3dPACCu
LD2Qz/pqPV8rPE80hGRug9TT0H6h6Gu37oe8eD6S80qHMWMA0UG4xZoMbc+kqW6KxzXKXQh2
2PqHiJzFl5IqF7qwopGits+cST/s8LUGG+XSJr7s+iof+dJPjUiRW888h6Rz7nk8ZEx2MNik
5TuOprJLLbxdpwlg4iXLPE3Xqh61l+FOIt+VtQ/iSOVXGGncmGbo6vI+cp0/U05vSx/JR4Aq
xOXYyJdugy2FH9IIwzjRg1Shh/1gi/WAyvfFaFRW/V1b/m2CQrS2Aq6x5+dlBmpRosV5umN+
/GWwpM/VdfZw4XVpUx/E1UT8cqSfmIlpM9T2OZVBU8hqOmXqEl2+/K77U7rnuZMc0kl8LS4E
fMTPXvqPknuZ7O5KK7p2ZLv9y7cCm9thweZRm/otMO646ZnaUrxlqtPj4ltzNLRzIB05ka09
KdtugaYXirQWkio04wzftQ9rdaDW6Sc6M9aielBpbRrirRyKI60ct5pRuz7+vENGXBp...
2003 Oct 08
4
OS/390 openssh
...6);
-
+#ifdef CHARSET_EBCDIC
+ if (binary) {
+ /* Convert back to ASCII */
+ /* ssh has converted to EBCDIC */
+ __etoa_l(bp->buf,count);
+ }
+#endif
if (count == bp->cnt) {
/* Keep reading so we stay sync'd up. */
if (wrerr == NO) {
@@ -1072,7 +1097,7 @@
cp = cp0;
do {
c = (int)*cp;
- if (c & 0200)
+ if (ASC(c) & 0200)
goto bad;
if (!isalpha(c) && !isdigit(c)) {
switch (c) {
diff -bur openssh-3.7.1p2.orig/serverloop.c openssh-3.7.1p2/serverloop.c
--- openssh-3.7.1p2.orig/serverloop.c Sat Jun 28 04:38:02 2003
+++ openssh-3.7...
2012 Jun 24
0
nouveau _BIOS method
...TL.LCDT.VDRV...P
7b60: 53 56 54 08 54 43 31 56 08 54 43 32 56 08 54 53 SVT.TC1V.TC2V.TS
7b70: 50 56 08 43 52 54 54 08 41 43 54 54 08 00 40 05 PV.CRTT.ACTT.. at .
7b80: 4d 50 45 4e 08 50 50 43 53 08 50 50 43 4d 08 50 MPEN.PPCS.PPCM.P
7b90: 43 50 30 08 50 43 50 31 08 47 53 53 52 08 44 49 CP0.PCP1.GSSR.DI
7ba0: 41 47 08 54 5a 4f 4e 08 4e 49 53 54 08 52 49 53 AG.TZON.NIST.RIS
7bb0: 54 08 52 43 53 54 08 43 43 53 54 08 52 43 4e 54 T.RCST.CCST.RCNT
7bc0: 08 43 33 53 55 08 43 54 55 52 08 00 08 44 43 4b .C3SU.CTUR...DCK
7bd0: 53 08 50 44 4b 53 08 53 4d 43 50 08 4e 32 30 37 S.PDKS....