Lines 1-6
Link Here
|
1 |
/*- |
1 |
/*- |
2 |
* SPDX-License-Identifier: BSD-3-Clause |
2 |
* SPDX-License-Identifier: BSD-3-Clause |
3 |
* |
3 |
* |
|
|
4 |
* Copyright 2018 Staysail Systems, Inc. <info@staysail.tech> |
4 |
* Copyright 2014 Garrett D'Amore <garrett@damore.org> |
5 |
* Copyright 2014 Garrett D'Amore <garrett@damore.org> |
5 |
* Copyright 2010 Nexenta Systems, Inc. All rights reserved. |
6 |
* Copyright 2010 Nexenta Systems, Inc. All rights reserved. |
6 |
* Copyright (c) 1989, 1993 |
7 |
* Copyright (c) 1989, 1993 |
Lines 375-390
Link Here
|
375 |
char *p; |
376 |
char *p; |
376 |
int getout; |
377 |
int getout; |
377 |
|
378 |
|
378 |
p = strdup(getstr()); |
379 |
/* Convert "b" to "s" for output. */ |
379 |
if (p == NULL) { |
380 |
start[strlen(start) - 1] = 's'; |
|
|
381 |
if ((p = strdup(getstr())) == NULL) { |
380 |
warnx("%s", strerror(ENOMEM)); |
382 |
warnx("%s", strerror(ENOMEM)); |
381 |
return (NULL); |
383 |
return (NULL); |
382 |
} |
384 |
} |
383 |
getout = escape(p, 0, &len); |
385 |
getout = escape(p, 0, &len); |
384 |
fputs(p, stdout); |
386 |
PF(start, p); |
|
|
387 |
|
385 |
free(p); |
388 |
free(p); |
|
|
389 |
/* Restore format for next loop. */ |
386 |
if (getout) |
390 |
if (getout) |
387 |
return (end_fmt); |
391 |
exit(*rval); |
388 |
break; |
392 |
break; |
389 |
} |
393 |
} |
390 |
case 'c': { |
394 |
case 'c': { |