xscreensaver settings window crashes in OpenBSD 7.2
This is the results of running xscreensaver in a terminal and hitting the settings button $ xscreensaver xscreensaver-settings: 11:59:12: X error: xscreensaver-settings: Failed request: BadMatch (invalid parameter attributes) xscreensaver-settings: Major opcode: 42 (X_SetInputFocus) xscreensaver-settings: Resource id:0x1a3 xscreensaver-settings: Serial number: 435 / 436 -Luke
xscreensaver's BSOD superimposed onto background
xscreensaver's BSOD screensaver is superimposed onto the background image when it obviously shouldn't do that. -Luke
Re: I think your perl changes broke snort2pf
Ok, thanks. On Thu, Mar 4, 2021 at 5:02 AM Stuart Henderson wrote: > On 2021/03/03 23:10, Luke Small wrote: > > I ran current. I don't know how to fix it. I ran pkg_check. > > If you are using an architecture where new packages are already > built: pkg_add -u > > If not: Wait a while, then pkg_add -u > > -- -Luke
Re: I think your perl changes broke snort2pf
I ran current. I don't know how to fix it. I ran pkg_check. -Luke On Wed, Mar 3, 2021 at 9:25 PM Andrew Hewus Fresh wrote: > On Wed, Mar 03, 2021 at 09:03:43PM -0600, Luke Small wrote: > > # snort2pf -h > > Socket6.c: loadable library and perl binaries are mismatched (got > handshake > > key 0xb60, needed 0xec0) > > -Luke > > You need a Socket6 that is linked against the new version of perl. > > l8rZ, > -- > andrew - http://afresh1.com > > If your computer says, "Printer out of Paper," this problem cannot > be resolved by continuously clicking the "OK" button. >
I think your perl changes broke snort2pf
# snort2pf -h Socket6.c: loadable library and perl binaries are mismatched (got handshake key 0xb60, needed 0xec0) -Luke
Re: I want to make a simple port.
I did report it to bugs. Ted took care of it in -current apparently. I still haven't looked into getopt really well. I need root to write into /etc/pkg.conf it privilege separates and drops privileges before it gets to network ftp calls. I'm not claiming it's the best it can be right now. But I think it is useful and possibly useful in edge cases in the base. I have been rewriting it a lot and it outputs more than it needs to because I have been debugging new features. I think it would maybe in the future, be an attractive feature for a new install that doesn't have a mirror set, and the user doesn't know which mirror is the best, who may just choose the main install mirror for the perceived stability over minimized latency; overloading the main mirrors. I've seen pkg_add just sit there doing nothing when it had a bad mirror and at least there ought to be some sanity checking, if not at least some manual interface to choosing a new mirror. Especially since web browsers aren't in the base and looking up /etc/examples/pkg.conf, which has cymru, which is dead and others which don't work, isn't the most obvious for people that aren't aware of its existence. I think it only exists, because a guy made it as an answer to my previous program that got it in an insecure manner from openbsd.org/ftp.html I'm not sure why there is resistance to automating mirror selection, even if it could be a manual choice to do so. On Thu, Aug 25, 2016, 09:26 Jeremie Courreges-Anglas <j...@wxcvbn.org> wrote: > Luke Small <lukensm...@gmail.com> writes: > > > It calls ftp multiple times to find the relative speed and latency of a > > PKG_PATH mirrors found in /etc/examples/pkg.conf and if it is run as > root, > > provides automatic, fine-grained excision of installpath options and > > attributed comments. > > My opinion is that this is still a toy project. This will not be > included in base/, and I would object to an inclusion in the ports tree. > > > It is pledged in many places, provides privilege > > separation, but I run 5.9 and a glitch that is fixed in current forbids > > using NOTE_EXIT in kqueue while using setuid executables. > > What you're saying is scary. In a perfect world no program runs > setuid-root. > > Anyway, if you noticed a behavior change that breaks userland, please > report on bugs@. > > > I need NOTE_EXIT > > to time how long it takes for ftp to run and to kill it if it takes too > > long. It is a fun little utility! > > No you do not *need* NOTE_EXIT. You do not need kqueue(2), you do not > need C, you do not need to rewrite getopt(3) from scratch, etc etc. > > Sorry if it hurts, but please do not waste people's time about this toy > project. > > -- > jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE >
I want to make a simple port.
It calls ftp multiple times to find the relative speed and latency of a PKG_PATH mirrors found in /etc/examples/pkg.conf and if it is run as root, provides automatic, fine-grained excision of installpath options and attributed comments. It is pledged in many places, provides privilege separation, but I run 5.9 and a glitch that is fixed in current forbids using NOTE_EXIT in kqueue while using setuid executables. I need NOTE_EXIT to time how long it takes for ftp to run and to kill it if it takes too long. It is a fun little utility! /* * Copyright (c) 2016 Luke N. Small * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /* * indent pkg_ping2.c -bap -br -ce -ci4 -cli0 -d0 -di0 -i8 -ip -l79 -nbc -ncdb -ndj -ei -nfc1 -nlp -npcs -psl -sc -sob */ #define EVENT_NOPOLL #define EVENT_NOSELECT #include #include #include #include #include #include #include #include #include #include #include struct mirror_st { char *label; char *mirror; double diff; }; static int ftp_cmp(const void *a, const void *b) { struct mirror_st **one; struct mirror_st **two; one = (struct mirror_st **) a; two = (struct mirror_st **) b; if ((*one)->diff < (*two)->diff) return -1; if ((*one)->diff > (*two)->diff) return 1; return 0; } static int label_cmp(const void *a, const void *b) { struct mirror_st **one; struct mirror_st **two; int8_t temp; one = (struct mirror_st **) a; two = (struct mirror_st **) b; /* list the USA mirrors first, it will subsort correctly */ temp = !strncmp("USA", (*one)->label + strlen((*one)->label) - 3, 3); if (temp != !strncmp("USA", (*two)->label + strlen((*two)->label) - 3, 3)) { if (temp) return -1; return 1; } return strcmp((*one)->label, (*two)->label); } static double get_time_diff(struct timeval a, struct timeval b) { long sec; long usec; sec = b.tv_sec - a.tv_sec; usec = b.tv_usec - a.tv_usec; if (usec < 0) { --sec; usec += 100; } return sec + ((double) usec / 100.0); } __dead void manpage(char *a) { errx(1, "%s [-n maximum_mirrors_written] [-s timeout (floating-point)]", a); } int main(int argc, char *argv[]) { if (pledge("stdio wpath cpath rpath proc exec id getpw", NULL) == -1) err(EXIT_FAILURE, "pledge"); extern char *malloc_options; malloc_options = (char *)"AFJHSUX"; pid_t ftp_pid, write_pid; int parent_to_write[2]; char letter; double s; int kq, i, pos, num, c, n, array_max, array_length; FILE *input, *pkgRead; struct utsname name; struct mirror_st **array; struct kevent ke; pkgRead = fopen("/etc/pkg.conf", "r"); array_max = 300; if ((array = calloc(array_max, sizeof(struct mirror_st *))) == NULL) errx(1, "calloc failed."); s = 5; n = 5000; if (uname() == -1) err(1, NULL); if (argc > 1) { if (argc % 2 == 0) manpage(argv[0]); for (pos = 1; pos < argc; ++pos) { if (strlen(argv[pos]) != 2) manpage(argv[0]); if (!strcmp(argv[pos], "-s")) { ++pos; c = -1; i = 0; while ((letter = argv[pos][++c]) != '\0') { if (letter == '.') ++i; if (((letter < '0' || letter > '9') && letter != '.') || i > 1) { if (letter == '-') errx(1, "No negative numbers."); errx(1, "Incorrect floating point format."); } } errno = 0; strtod(argv[pos], NULL); if (errno == ERANGE) err(1, NULL); if ((s = strtod(argv[pos], NULL)) > 1000.0) errx(1, "-s should <= 1000"); } else if (!strcmp(argv[pos], "-n")) { ++pos; if (strlen(argv[pos]) > 3) errx(1, "Integer should be <= 3 digits long."); c = -1; n = 0; while ((letter = argv[pos][++c]) != '\0') { if (letter < '0' || letter > '9') { if (letter == '.') errx(1, "No decimal points."); if (letter == '-') errx(1, "No negative #."); errx(1, "Incorrect integer format."); } n = n * 10 + (int) (letter - '0'); } } else manpage(argv[0]); } } if (pipe(parent_to_write) == -1) err(1, "pipe"); write_pid = fork(); if (write_pid == (pid_t) 0) { if (getuid() == 0) { if (pledge("stdio wpath cpath rpath", NULL) == -1) { printf("pledge\n"); _exit(EXIT_FAILURE); } } else { if (pledge("stdio rpath", NULL) == -1) { printf("pledge\n"); _exit(EXIT_FAILURE); } } close(parent_to_write[1]);
Re: lumina-DE dependency missing json-c...
I don't know I did all the right things to upgrade. I have upgraded my virtualbox guest for years. But I first upgraded, sysmerged, pkg_add -u, the I was able to log into kde4 from what I recall. Then I tried to get into lumima from the altered .xinitrc that calls Lumina-DE for startx. It crashed with the error statement that I described. It worked for a little while, until I did something along the lines of saving codeblocks to the panel and tried to run it. Now kdm won't work, when it did before. I have kde_enable (or whatever it is) enabled to where it worked before, but now it quits nearly instantly without any output On Apr 1, 2016 7:20 AM, "Stuart Henderson" <s...@spacehopper.org> wrote: > On 2016/04/01 05:20, Luke Small wrote: > > I updated to 5.9 and x gave me an error libjson-c.so.0.0 not found. Or > > something like that. I installed the json-c package and it worked. > > > > > > On Apr 1, 2016 05:15, "Stuart Henderson" <s...@spacehopper.org> wrote: > > >> > > >> On 2016/04/01 01:13, Luke Small wrote: > > >> > -Luke > > >> > > >> I don't see any reference to this in the source files. > > >> Is there an error message or something that you can show? > > > > I don't see any way it can be coming from something directly in Lumina > so without more information (exact error message) I don't think there's > anything we can do to fix it. > >
Re: lumina-DE dependency missing json-c...
I updated to 5.9 and x gave me an error libjson-c.so.0.0 not found. Or something like that. I installed the json-c package and it worked. On Apr 1, 2016 05:15, "Stuart Henderson" <s...@spacehopper.org> wrote: > On 2016/04/01 01:13, Luke Small wrote: > > -Luke > > I don't see any reference to this in the source files. > Is there an error message or something that you can show? >
lumina-DE dependency missing json-c...
-Luke